You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite build hangs for about 90 seconds on my machine, then blows up with
error during build:
RangeError: Maximum call stack size exceeded
at String.substring (<anonymous>)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:107:21)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
at replaceClose (file:///Users/simen/repos/company-admin/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:110:30)
Placing a breakpoint inside replaceClose shows vite trying to log a 37 MB string.
This lead me to evanw/esbuild#3335, and the fix in my case is to not target old browsers like ios safari or ie 10.
Fix in Vite is probably the same as in vitest-dev/vitest#3078 (i.e. limit the size of messages logged)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
vite build
hangs for about 90 seconds on my machine, then blows up withPlacing a breakpoint inside
replaceClose
shows vite trying to log a 37 MB string.This lead me to evanw/esbuild#3335, and the fix in my case is to not target old browsers like ios safari or ie 10.
Fix in Vite is probably the same as in vitest-dev/vitest#3078 (i.e. limit the size of messages logged)
Reproduction
https://github.com/SimenB/vite-overflow
Steps to reproduce
yarn install && yarn build
will show a lot of logging - scale that up to a big project and you're gonna have a bad timeSystem Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: