erictik / midjourney-api

MidJourney client. Unofficial Node.js client
Apache License 2.0
1.64k stars 269 forks source link

Big integer literals are not available #241

Open wordall1101 opened 8 months ago

wordall1101 commented 8 months ago

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/registry.npmmirror.com+snowyflake@2.0.0/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/registry.npmmirror.com+snowyflake@2.0.0/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/registry.npmmirror.com+snowyflake@2.0.0/node_modules/snowyflake/lib/index.js:18:36:
  18 │ const PROCESS_ID_DECONSTRUCT_MASK = 0x1f000n;