Code Monkey home page Code Monkey logo

vite-bugs's Introduction

vite-bugs's People

Contributors

dravenww avatar

Stargazers

 avatar

Watchers

 avatar

vite-bugs's Issues

JavaScript heap out of memory

<--- Last few GCs --->

[91782:0x108008000] 16016 ms: Mark-sweep (reduce) 4095.2 (4101.4) -> 4095.1 (4102.4) MB, 12.3 / 0.0 ms (average mu = 0.210, current mu = 0.020) last resort GC in old space requested
[91782:0x108008000] 16026 ms: Mark-sweep (reduce) 4095.1 (4101.4) -> 4095.1 (4102.4) MB, 10.0 / 0.0 ms (average mu = 0.120, current mu = 0.001) last resort GC in old space requested

<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

原因:vite 首次启动时,占用较大内存,第二次启动就好了

解决办法:node --max_old_space_size=16384 ./node_modules/vite/bin/vite.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.