-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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: Big integer literals are not available in the configured target environment ("chrome61", "edge18", "es2019", "firefox60", "safari11") #859
Comments
This is unrelated to Svelte. BigInt is a new syntax feature only available in modern browsers, and it cannot be transpiled. You could set your target to |
Hello 👋. I've run into this issue and the recommended solution doesn't appear to be an option. When I add
to
Reading around a bit in the Discord channel and in other issues, it sounds like SveleKit targets I am testing this with the template app recommended on the SvelteKit homepage with TypeScript enabled. I've set the My use case would work fine with Please let me know if I can fill in any additional details or if I should open a new issue on this. Thanks! 🙏 |
Seems like with this code, despite the error, it still works. Would still like a method without the error though. |
@dummdidumm, it seems like sveltekit doesn't allow users (I mean, developers who use the framework) to change kit/packages/kit/src/core/build/index.js Lines 458 to 497 in 9631200
Edited: Just found an open issue directly related to this problem: #2565 |
This issue still reproduces when running SvelteKit's dev server. I haven't been able to find any fix or workaround. |
You can set |
Worked for me!!! |
Describe the bug
During build it throws with:
error: Big integer literals are not available in the configured target environment ("chrome61", "edge18", "es2019", "firefox60", "safari11")
To Reproduce
A new svelte@next init app and a minimal Getting started code from https://github.com/timostamm/protobuf-ts.
(I know, but I don't have time right now for a new repo)
Expected behavior
I can build.
Can I change the target it detects? Can I remove that "es2019" for example?
Stacktraces
Stack trace
Information about your SvelteKit Installation:
Diagnostics
System:
OS: Windows 10 10.0.19042
Binaries:
Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
npm: 7.8.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@sveltejs/kit: 1.0.0-next.70 => 1.0.0-next.70
svelte: 3.37.0 => 3.37.0
vite: 2.1.5 => 2.1.5
The text was updated successfully, but these errors were encountered: