question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Primordials not defined

See original GitHub issue
const { Math, Object, Reflect } = primordials;
                                  ^

ReferenceError: primordials is not defined
    at fs.js:27:35
    at req_ (PROJECT/node_modules/natives/index.js:143:24)
    at Object.req [as require] (PROJECT/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (PROJECT/node_modules/unzip/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:759:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (internal/modules/cjs/helpers.js:16:16)

    at ChildProcess.<anonymous> (PROJECT/node_modules/node-elm-compiler/dist/index.js:131:35)
    at ChildProcess.emit (events.js:196:13)
    at maybeClose (internal/child_process.js:1000:16)
    at Socket.<anonymous> (internal/child_process.js:405:11)
    at Socket.emit (events.js:196:13)
    at Pipe.<anonymous> (net.js:586:12)

When moving to Node v12, I got this error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
xlportcommented, Jun 5, 2019

Any chance that PR173 can get merged? Thanks

8reactions
xiaoyinspycommented, May 12, 2019

me too, Node v12, the same

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "ReferenceError: primordials is not defined" in Node.js
Solution: Either upgrade to Gulp.js 4 or downgrade to an earlier version of Node.js. Share. Share a link to this ...
Read more >
How to fix "ReferenceError: primordials is not defined" error
Are you getting a ReferenceError: primordials is not defined error message when trying to run gulp? There's a solution: create the ...
Read more >
primordials is not defined' error NPM/Gulp/JS - Renat Galyamov
After switching to a new computer I installed the latest version of Node (v17). That was the cause of the “primordials is not...
Read more >
SPFX ReferenceError: primordials is not defined - Microsoft Q&A
I have updated machine with the latest version of Node. js LTS v14 with the below configurations. The latest recommended version is LTS...
Read more >
How to fix “ReferenceError: primordials is not defined” error.
Solution for ReferenceError: primordials is not defined: · 1. upgrade gulp to v4 . This Solution Will Solve Your Error. · 2. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found