GithubHelp home page GithubHelp logo

Comments (6)

andreasonny83 avatar andreasonny83 commented on May 28, 2024

Hi @DalderupMaurice
From what I can see, this looks like a create-react-app problem. I saw this discussion several times around the web (example here: facebook/create-react-app#4436)
A quick fix would be to just use Node v12 or pass an extra flag to your react-app script like: node --max-old-space-size=4000 npm run start

Let me know if that helps so I can either close the ticket or run more investigation

from unique-names-generator.

yuriteixeira avatar yuriteixeira commented on May 28, 2024

We don't use create-react-app and we're having the same issues.

Having the same issue here, and neither using node 12 or passing an extra param are options at the moment, unfortunately.

NOTE: We have close to 100 dependencies and none caused this issue.

[0] <--- Last few GCs --->
[0]
[0] [82193:0x108008000]    31907 ms: Scavenge 1377.1 (1423.0) -> 1376.4 (1423.5) MB, 2.2 / 0.0 ms  (average mu = 0.186, current mu = 0.150) allocation failure
[0] [82193:0x108008000]    31910 ms: Scavenge 1377.4 (1423.5) -> 1376.8 (1424.0) MB, 2.4 / 0.0 ms  (average mu = 0.186, current mu = 0.150) allocation failure
[0] [82193:0x108008000]    31913 ms: Scavenge 1377.5 (1424.0) -> 1376.9 (1425.0) MB, 2.2 / 0.0 ms  (average mu = 0.186, current mu = 0.150) allocation failure
[0]
[0]
[0] <--- JS stacktrace --->
[0]
[0] ==== JS stack trace =========================================
[0]
[0]     0: ExitFrame [pc: 0x10826fa5be3d]
[0] Security context: 0x316711e9e6e9 <JSObject>
[0]     1: SourceMapConsumer_allGeneratedPositionsFor [0x3167b98b6ce9] [/Users/yuriteixeira/Projects/XYZ/node_modules/@babel/core/node_modules/source-map/lib/source-map-consumer.js:~178] [pc=0x1082705060fb](this=0x3167ec7dc919 <BasicSourceMapConsumer map = 0x3167a1690641>,aArgs=0x316777082249 <Object map = 0x31677df5c461>)
[0]     2: /* anonymous */(aka /...
[0]
[0] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[0]  1: 0x10003c597 node::Abort() [/usr/local/bin/node]
[0]  2: 0x10003c7a1 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
[0]  3: 0x1001ad575 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/bin/node]
[0]  4: 0x100579242 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/usr/local/bin/node]
[0]  5: 0x10057bd15 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/usr/local/bin/node]
[0]  6: 0x100577bbf v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/bin/node]
[0]  7: 0x100575d94 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/bin/node]
[0]  8: 0x10058262c v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/bin/node]
[0]  9: 0x1005826af v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/bin/node]
[0] 10: 0x100551ff4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/bin/node]
[0] 11: 0x1007da044 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
[0] 12: 0x10826fa5be3d
[0] 13: 0x1082705060fb

from unique-names-generator.

yuriteixeira avatar yuriteixeira commented on May 28, 2024

While searching for a replacement to the lib, I decided to try v3 just in case, and it worked for me @DalderupMaurice

from unique-names-generator.

DalderupMaurice avatar DalderupMaurice commented on May 28, 2024

While searching for a replacement to the lib, I decided to try v3 just in case, and it worked for me @DalderupMaurice

Oh great! I haven't found any other solutions, but the ones proposed by @andreasonny83 (more specifically - upgrading to node 12) have done the job for me.

from unique-names-generator.

andreasonny83 avatar andreasonny83 commented on May 28, 2024

Glad to hear that. thanks

from unique-names-generator.

brkastner avatar brkastner commented on May 28, 2024

v4 works if you add the following to your .env file:

SKIP_PREFLIGHT_CHECK=true

(taken from storybookjs/storybook#5183)

from unique-names-generator.

Related Issues (20)

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.