Closed duncan1a closed 2 months ago
Isn't this a duplicate of #5714
I'm not sure. That looked to me like he didn't need SSR. I do though, and vercel can handle the mongodb
package, just not with the qwik config it seems
@duncan1a I propose you experiment with how to build for Vercel, and share your findings here. Vercel has a plugin for vite it seems. See https://vercel.com/docs/frameworks/vite
hey are you using bun.js?
hey are you using bun.js?
Not that I'm aware of
@duncan1a Are you still facing this issue? FYI, your Github link throws 404.
hey man may that was your nodejs version error, consider to open pull request on nodejs official github repo or use other nodejs version, i don't have enough information about your error but you probably try.
I just noticed that my vercel was node 12, quite old. I haven't had a chance to deploy again (at a company off-site), but will try asap
I just noticed that my vercel was node 12, quite old. I haven't had a chance to deploy again (at a company off-site), but will try asap
that's the problem. change nodejs version on package.json and closed this issue if solved.
hmmm, if I build my blog
branch, which is for vercel, then I get he same error locally (didn't notice that before, bt maybe I didn't build it since it wasn't the master branch)), but if I build the koyeb
branch, which also has MongoDB then it builds fine. It's definitely the vercel build and not the node version
... I found this in node_modules/.pnpm/@builder.io+qwik-city@1.3.1_@types+node@20.10.5/node_modules/@builder.io/qwik-city/adapters/vercel-edge/vite/index.cjs
after looking through this PR https://github.com/BuilderIO/qwik/pull/5414/files
However, adding {target: "node"}
to the vercelEdgeAdapter
in adapters/vercel-edge/vite.config.ts
still gets the same error
@duncan1a Did you solve this issue?
@duncan1a Did you solve this issue?
No
Hello @duncan1a. Please provide a minimal reproduction using a GitHub repository or StackBlitz.
Here is why we really need a minimal reproduction.
Issues marked with STATUS-2: needs reproduction
will be automatically closed if they have no activity within 14 days.
Thanks 🙏
@duncan1a your repro leads to a 404 now.
but if I build the koyeb branch, which also has MongoDB then it builds fine. It's definitely the vercel build and not the node version If vercel can build with MongoDB could you update the issue title or close and open a new issue with a narrower MRE?
I deleted the repo some time ago - closing this now
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I'm trying to use Atlas (using the
mongodb
npm package) with my vercel qwik.js app but am getting this error on build in vercel, so I think vercel can handle using the MongoDB package. It works fine locally.I have enabled the Vercel-Atlas integration and have also managed to deploy the example
NextJs/Atlas
demo (https://github.com/duncan1a/vercel-demo) on vercel. I've used the same MongoDB package version in my readitsideways qwik repo.https://github.com/duncan1a/readitsideways/tree/blog
I don't know where else to look to fix the issue
Reproduction
https://github.com/duncan1a/readitsideways/tree/blog
Steps to reproduce
Deploy to Vercel
System Info