-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@sveltejs/adapter-vercel 1.0.0-next.51 breaks production project #4933
Comments
A reproduction is a link to a minimal project that demonstrates this behavior, not an assertion that this happened with your project which no one is able to see. |
I'm trying to set up a MVP @Conduitry, but I'm struggling to reverse-engineer the cause of this bug. My current findings are similar to stuff discussed in this issue: #2400. I've diffed the build-output on my project with the I'm not up to date with the code that builds a SvelteKit project, but if this seems like a valid bug I'll gladly provide more info or help in other ways. |
Update: I've managed to recreate the bug @Conduitry. Here's an MVP that will break in production with The project has 2 branches, Here is a deployed version with the |
I'm also getting this, updating to the latest sveltekit and adapter-auto causes my production build to fail.
Here's the repo: https://github.com/stockanalysisdev/stock-analysis-sveltekit/tree/update-packages |
I have a feeling that the bug is related to CJS packages that are converted to ESM by the bundler |
I too can confirm this behavior. For me, it was throwing an error related to Crypto. Downgrading to |
I have the same problem, I had to go back to |
I have the same issue when using firebase-admin in a sveltekit endpoint with
Reproduce here: |
I can also confirm this is happening with |
Netlify went down the same road and had to revert changes: |
A possible solution could be using the @hyrious/esbuild-plugin-commonjs plugin. |
Thank you for this. |
Describe the bug
The "start" method goes from...
...to...
when updating the vercel adapter from
next.50
tonext.51
.This change triggers the following error message when trying to open up the project in production.
Reproduction
Here's a MVP that will break in production with
adapter.51
, but will work withadapter.50
: https://github.com/MathiasWP/vercel-adapter-bug-reproductionThe project has 2 branches,
main
with adapternext.51
, and a branch calledadapter.50
with thenext.50
version.Here is a deployed version with the
next.50
adapter (working): https://vercel-adapter-bug-reproduction-mps8glry7-mathiaswp.vercel.app/And here is the exact same application with the
next.51
adapter (not working): https://vercel-adapter-bug-reproduction.vercel.app/Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: