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

Big integer literals are not available #241

Open
wordall1101 opened this issue Oct 21, 2023 · 0 comments
Open

Big integer literals are not available #241

wordall1101 opened this issue Oct 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wordall1101
Copy link

the code that reproduces this issue or a replay of the bug

vue vite环境

Describe the bug

tsconfig.json中的配置如下:
{
"compilerOptions": {
"baseUrl": ".",
"module": "ESNext",
"target": "ESNext",
"lib": ["DOM", "ESNext"],
"strict": true,
"esModuleInterop": true,
"jsx": "preserve",
"moduleResolution": "node",
"resolveJsonModule": true,
"noUnusedLocals": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"~/": ["./"],
"@/": ["./src/"]
},
"types": ["node", "vite/client", "unplugin-icons/types/vue"]
},
"exclude": ["node_modules", "dist"]
}

error log

midjourney/libs/utils/index.js:10:14: ERROR: Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)

node_modules/.pnpm/[email protected]/node_modules/snowyflake/lib/index.js:16:22:
16 │ const SEQUENCE_BITS = 12n;
╵ ~~~

X [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)

node_modules/.pnpm/[email protected]/node_modules/snowyflake/lib/index.js:17:35:
  17 │ const WORKER_ID_DECONSTRUCT_MASK = 0x3e0000n;
     ╵                                    ~~~~~~~~~

X [ERROR] Big integer literals are not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari13" + 2 overrides)

node_modules/.pnpm/[email protected]/node_modules/snowyflake/lib/index.js:18:36:
  18 │ const PROCESS_ID_DECONSTRUCT_MASK = 0x1f000n;
@wordall1101 wordall1101 added the bug Something isn't working label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant