Skip to content
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

Error on Vercel edge when building #39

Open
isakgustavsen opened this issue Mar 11, 2024 · 2 comments
Open

Error on Vercel edge when building #39

isakgustavsen opened this issue Mar 11, 2024 · 2 comments

Comments

@isakgustavsen
Copy link

Build fails when deploying to Vercel edge using nuxt with the following errors
/vercel/path0/.nuxt/dist/server/_nuxt/welcome-BePl3Abn.js:6034:15: ERROR: Big integer literals are not available in the configured target environment ("es2019")

Big integer literals are not available in the configured target environment ("es2019")

The current fix for me is to add this to nuxt.config, but that should either be documented or fixed as it is hard to find. Not sure which is the better option.
vite: { esbuild: { target: 'esnext' } },

@isakgustavsen isakgustavsen changed the title Error on edge when building Error on Vercel edge when building Mar 11, 2024
@isakgustavsen
Copy link
Author

also this:
Issues with peer dependencies found . └─┬ nuxt 3.10.3 └─┬ @nuxt/vite-builder 3.10.3 └─┬ vite 5.1.5 └── ✕ unmet peer @types/node@"^18.0.0 || >=20.0.0": found 14.18.33

@isakgustavsen
Copy link
Author

just had the issue with the esnext, but removing autoimport fixed the build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant