Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: primordials is not defined #27422

Closed
b-m-9 opened this issue Apr 26, 2019 · 4 comments
Closed

ReferenceError: primordials is not defined #27422

b-m-9 opened this issue Apr 26, 2019 · 4 comments

Comments

@b-m-9
Copy link

b-m-9 commented Apr 26, 2019

  • Version: 12.0.0
  • Platform: MacOS 10.14, Debian 9
  • Subsystem: fs.js module
fs.js:27
const { Math, Object, Reflect } = primordials;
                                  ^

ReferenceError: primordials is not defined
    at fs.js:27:35
    at req_ (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/Users/bdev/Documents/Projects/exchanger-api/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/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 Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/graceful-fs/graceful-fs.js:3:27)
    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 Object.<anonymous> (/Users/bdev/Documents/Projects/exchanger-api/node_modules/unzip/node_modules/fstream/lib/reader.js:4:10)
    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)
@b-m-9
Copy link
Author

b-m-9 commented Apr 26, 2019

[email protected] already installed but did not solve the problem

@targos
Copy link
Member

targos commented Apr 26, 2019

Node.js cannot support what the natives module is doing. It is often broken when a new major release of Node.js happens.
The solution to your problem is probably to use a more recent and maintained alternative to the unzip module.

@targos targos closed this as completed Apr 26, 2019
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
nikolay-borzov pushed a commit to nikolay-borzov/react-mentoring that referenced this issue Jun 11, 2019
- Update to latest major versions: `babel`, `jest`, `redux-saga`, `reselect` and `styled-components`
- Replace `babel-polyfill` with `core-js`
- Drop Node.js 8 support
- Disable styled components snapshot tests: `styled-components@4` doesn't support snapshot yet
- Update snapshots after updating React
- Don't support Node.js 12 yet due to `natives` module incompatibility (nodejs/node#27422)
@aruprakshit
Copy link

I am having the same problem.. Anybody got a solution of this?

@Pysis868
Copy link

Had this error without gulp(!!) installing over old v10 installation on Windows using the msi package. Removing that directory's contents and repairing made it work. Why it does not take care in the first place..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants