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
Running vite hangs for a moment and ends up crashing with a JavaScript heap out of memory
Reproduction
The problem happens by only adding the dependencies:
yarn create vite-app vite-bug-report
cd vite-bug-report
yarn add tailwindcss @tailwindcss/ui
yarn dev
System Info
vite version: 0.15.3
Operating System: OSX 10.15.4
Node version: v12.16.1
Latest vue@next
Logs (Optional if provided reproduction)
$ vite --debug --force
vite v0.15.3
vite:resolve (node_module entry) @tailwindcss/ui -> @tailwindcss/ui/index.js +0ms
vite:resolve (node_module entry) vue -> vue/dist/vue.runtime.esm-bundler.js +1ms
[vite] Optimizable dependencies detected.
Pre-bundling them to speed up dev server page load...
(this will be run only when your dependencies have changed)
<--- Last few GCs --->
[1184:0x10291f000] 91906 ms: Mark-sweep 2033.4 (2050.6) -> 2029.3 (2037.4) MB, 900.4 / 0.0 ms (+ 504.2 ms in 123 steps since start of marking, biggest step 10.4 ms, walltime since start of marking 1422 ms) (average mu = 0.108, current mu = 0.069) fina[1184:0x10291f000] 91916 ms: Scavenge 2033.2 (2037.4) -> 2026.0 (2060.9) MB, 3.8 / 0.0 ms (average mu = 0.108, current mu = 0.069) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x100950919]
Security context: 0x2fa1967808d1 <JSObject>
1: /* anonymous */(aka /* anonymous */) [0x2fa1044ef1b9] [/Users/posva/vite-bug-tailwind/node_modules/@rollup/plugin-node-resolve/dist/index.js:~403] [pc=0x3a85a98460af](this=0x2fa1457804b1 <undefined>)
2: next [0x2fa1967a2f49](this=0x2fa1044ef629 <JSGenerator>,0x2fa1457804b1 <undefined>)
3: _next(aka _next) [0x2fa1044ef3d1] [/Users/posva/vite-bug-t...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
The text was updated successfully, but these errors were encountered:
Submitted #169 as a fix but I wonder how many other dependencies will have to be added to that list. I think since tailwind is on the list, tailwindui should be added too but I think some kind of protection would be better.
For anybody with a similar problem, the dependency can be excluded by creating a vite.config.js file with
Describe the bug
Running
vite
hangs for a moment and ends up crashing with aJavaScript heap out of memory
Reproduction
The problem happens by only adding the dependencies:
System Info
vite
version: 0.15.3Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: