Comments (6)
Leak in babel inside babel-helper-mark-eval-scopes
from babel-minify-webpack-plugin.
I can confirm that this error is happening to me too:
Compiling…
Compilation failed:
[BABEL] Note: The code generator has deoptimised the styling of /home/app/src/node_modules/nitro-storybook/fonts/regular.js as it exceeds the max of 500KB.
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]
2: 0x121a2cc [node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
5: v8::internal::Factory::NewTransitionArray(int) [node]
6: v8::internal::TransitionArray::Insert(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Map>, v8::internal::SimpleTransitionFlag) [node]
7: v8::internal::Map::CopyReplaceDescriptors(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::DescriptorArray>, v8::internal::Handle<v8::internal::LayoutDescriptor>, v8::internal::TransitionFlag, v8::internal::MaybeHandle<v8::internal::Name>, char const*, v8::internal::SimpleTransitionFlag) [node]
8: v8::internal::Map::CopyAddDescriptor(v8::internal::Handle<v8::internal::Map>, v8::internal::Descriptor*, v8::internal::TransitionFlag) [node]
9: v8::internal::Map::TransitionToDataProperty(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::PropertyConstness, v8::internal::Object::StoreFromKeyed) [node]
10: v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [node]
11: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [node]
12: v8::internal::JSObject::DefineOwnPropertyIgnoreAttributes(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::JSObject::AccessorInfoHandling) [node]
13: v8::internal::Runtime_DefineDataPropertyInLiteral(int, v8::internal::Object**, v8::internal::Isolate*) [node]
14: 0x1ca20620463d
<--- Last few GCs --->
[137:0x41bda90] 1468904 ms: Mark-sweep 1410.7 (1537.9) -> 1410.7 (1536.9) MB, 6593.3 / 0.1 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 6593 ms) last resort GC in old space requested
[137:0x41bda90] 1474602 ms: Mark-sweep 1410.7 (1536.9) -> 1410.7 (1536.9) MB, 5697.2 / 0.0 ms last resort GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x9a4fd2a5ee1 <JSObject>
2: from [native array.js:1] [bytecode=0x14af8cd8f419 offset=116](this=0x9a4fd285519 <JSFunction Array (sfi = 0x1e01bc927809)>,arrayLike=0x2be2b24fffe1 <Set map = 0x180e72184eb1>,mapfn=0x1e01bc902311 <undefined>,receiver=0x1e01bc902311 <undefined>)
3: arguments adaptor frame: 1->3
4: hasEval(aka hasEval) [/home/app/src/node_modules/babel-helper-mark-eval-scopes/lib/index.js:~53] [pc=0x...
script returned exit code 1
So I don't think it's an isolated incident.
from babel-minify-webpack-plugin.
Bump the same issue
from babel-minify-webpack-plugin.
Is there something i can do in my environment to fix this? Or does it need to be fixed in the babel package? If it's out of my control, is there an ETA for an available fix/patch?
from babel-minify-webpack-plugin.
i am also facing this issue, please help
from babel-minify-webpack-plugin.
Build worked for me using NODE_OPTIONS="--max-old-space-size=4096"
environment variable, even though it took excruciatingly long time. Setting it to a higher value doesn't seem to help.
from babel-minify-webpack-plugin.
Related Issues (20)
- Unusable release on npm HOT 3
- invalid option topLevel HOT 1
- Newest version not available via NPM / Yarn HOT 1
- Uncaught TypeError: Class constructor cannot be invoked without 'new' [bug] HOT 1
- Update packge.json to support babel-core@7-beta HOT 9
- In README it is said “falsy value to remove all comments”. Not quite true HOT 2
- error with sourcemaps HOT 35
- UnhandledPromiseRejectionWarning when building HOT 2
- Improve the minification speed HOT 1
- named functions excluded HOT 1
- Problem in strict-mode with ejs-templates HOT 1
- A joined array of ES6 template literals is minfied uncorrectly HOT 1
- "mangle.exclude" doesn't seem to exclude the namespaces HOT 5
- breaks bundling HOT 1
- "parallel" options to leverage multiple cores [feature request]
- Error: original.line and original.column are not numbers HOT 2
- Babel 7 Support HOT 13
- Banner comment is removed
- Configuration with react HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-minify-webpack-plugin.