Skip to content

yarn start fails #1

@wagnersj

Description

@wagnersj

orion-dashboard fails to start when issue the yarn start command.

Initial attempt to run yarn command from fresh clone of repo leads to the following error:

$ yarn
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '<full path removed>/orion-dashboard/.yarn/releases/yarn-berry.cjs'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

Solution to this problem is to copy over the .yarn/releases/yarn-berry.cjs file from the carbon-design-system/carbon-tutorial project. After this, the initial run of yarn works.

Once yarn-berry.cls is present, executing yarn start results in page from localhost being loaded in Web browser, followed by several minutes without output and escalating memory usage from node up to ~10 GB. Finally, command dies with the following error messages:

Starting the development server...


<--- Last few GCs --->

[188499:0x563d2c4066c0]   219877 ms: Mark-sweep 1346.5 (1425.0) -> 1345.1 (1424.6) MB, 1768.3 / 0.0 ms  (average mu = 0.124, current mu = 0.070) allocation failure GC in old space requested
[188499:0x563d2c4066c0]   221350 ms: Mark-sweep 1346.2 (1424.6) -> 1345.5 (1425.1) MB, 1467.6 / 0.0 ms  (average mu = 0.072, current mu = 0.004) allocation failure scavenge might not succeed


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x17a53d6dbf1d]
Security context: 0x3e054dd1e6c1 <JSObject>
    1: queue [0x20b78d9036e9] [<full path removed>/orion-dashboard/node_modules/@babel/generator/lib/buffer.js:~75] [pc=0x17a53f66e9c5](this=0x2f7c3ce8e9b9 <Buffer map = 0x3f9d03635d11>,str=0x39f937d09d61 <String[1]:  >)
    2: space [0x279d21213fb1] [<full path removed>/orion-dashboard/node_modules/@babel/generator/lib/printer....

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x563d28e32e74 node::Abort() [/usr/bin/node]
 2: 0x563d28e32ec2  [/usr/bin/node]
 3: 0x563d2902aaaa v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
 4: 0x563d2902ad25 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
 5: 0x563d293dc0a6  [/usr/bin/node]
 6: 0x563d293dc1e4  [/usr/bin/node]
 7: 0x563d293ee70b v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
 8: 0x563d293eeec9 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
 9: 0x563d293f17cd v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/bin/node]
10: 0x563d293f1826 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/bin/node]
11: 0x563d293be1c8 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/bin/node]
12: 0x563d2964317c v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/bin/node]
13: 0x17a53d6dbf1d 

The original carbon-design-system/carbon-tutorial project works fine in my environment.

OS: RHEL 8.3
node: v10.24.0
browser: Chrome 91.0.4472.77

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions