build passes but runtime failing -- maybe mongodb?
I have been running mastra without issue in a lambda for awhile but I'm stuck in some kind of esm build look hell now and have no idea why.
I went from .13 => .21
oddly, it works fine with npm run dev but if I run build and then run start it has a ton of issues with what seem to be mongodb driver optional packages.
node 20
Broken in lambda, app runner, and trying to buid and run the build locally on my macbook
"@mastra/core": "^0.21.0",
"@mastra/evals": "^0.14.0",
"@mastra/libsql": "^0.15.2",
"@mastra/loggers": "^0.10.16",
"@mastra/memory": "^0.15.7",
"@mastra/pg": "^0.17.4",
"@mastra/s3vectors": "^0.2.7",
Anything else I should be looking at?
1 Reply
I think maybe just needed to add mongo to the externals
bundler: {
externals: ["mongodb"]
}
That was it! consider it closed my B