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

[2.0.0-beta.32] RangeError: Maximum call stack size exceeded #1591

Closed
3 tasks done
michael-land opened this issue Jan 19, 2021 · 1 comment
Closed
3 tasks done

[2.0.0-beta.32] RangeError: Maximum call stack size exceeded #1591

michael-land opened this issue Jan 19, 2021 · 1 comment

Comments

@michael-land
Copy link

⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

  • Read the docs.
  • Use Vite >=2.0. (1.x is no longer supported)
  • If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.

Describe the bug

The vite bundler throw RangeError when file is saved.

(node:5885) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
    at path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:41
    at Set.forEach (<anonymous>)
    at invalidateSSRModule (path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:19)
    at path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:41
    at Set.forEach (<anonymous>)
    at invalidateSSRModule (path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:19)
    at path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:41
    at Set.forEach (<anonymous>)
    at invalidateSSRModule (path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:19)
    at path/node_modules/vite/dist/node/chunks/dep-6c35d66c.js:60663:41
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5885) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:5885) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Reproduction

I'm not sure what to reproduce, it happens after upgrading to 2.0.0-beta.32, downgrading to beta.31 solve the issue.

System Info

  • vite version: 2.0.0-beta.32
  • Operating System: MacOS
  • Node version: 14
  • Package manager (npm/yarn/pnpm) and version: yarn

Logs (Optional if provided reproduction)

  1. Run vite or vite build with the --debug flag.
  2. Provide the error log here.
  vite:config no config file found. +0ms
[dotenv][DEBUG] did not match key and value when parsing line 3: 
  vite:config using resolved config: {
  vite:config   root: 'path',
  vite:config   mode: 'development',
  vite:config   configFile: undefined,
  vite:config   logLevel: undefined,
  vite:config   clearScreen: undefined,
  vite:config   server: {},
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     server: {}
  vite:config   },
  vite:config   command: 'serve',
  vite:config   isProduction: false,
  vite:config   optimizeCacheDir: 'path/node_modules/.vite',
  vite:config   alias: [
  vite:config     {
  vite:config       find: /^\/@vite\//,
  vite:config       replacement: 'path/node_modules/vite/dist/client/'
  vite:config     }
  vite:config   ],
  vite:config   plugins: [
  vite:config     'vite:pre-alias',
  vite:config     'alias',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:css-post',
  vite:config     'vite:client-inject',
  vite:config     'vite:import-analysis'
  vite:config   ],
  vite:config   build: {
  vite:config     base: '/',
  vite:config     target: [ 'es2019', 'edge16', 'firefox60', 'chrome61', 'safari11' ],
  vite:config     polyfillDynamicImport: true,
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false
  vite:config   },
  vite:config   env: {
  vite:config     BASE_URL: '/',
  vite:config     MODE: 'development',
  vite:config     DEV: true,
  vite:config     PROD: false
  vite:config   },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   }
  vite:config } +4ms
@yyx990803
Copy link
Member

fixed in beta.33

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants