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 #7

Open
PFight opened this issue Jun 23, 2020 · 0 comments
Open

ReferenceError: primordials is not defined #7

PFight opened this issue Jun 23, 2020 · 0 comments

Comments

@PFight
Copy link

PFight commented Jun 23, 2020

When running npm run build on Node v12.16.1 getting error:

ReferenceError: primordials is not defined
    at fs.js:35:5
    at req_ (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\natives\index.js:55:10)
    at Object.<anonymous> (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Object.require.extensions.<computed> [as .js] (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\babel-register\lib\node.js:152:7)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)

As said there: https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node

Solution: Either upgrade to gulp 4 or downgrade to an earlier node.

Tried just npm i gulp@v4, and got another error:

AssertionError [ERR_ASSERTION] [ERR_ASSERTION]: Task function must be specified
    at Gulp.set [as _setTask] (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\undertaker\lib\set-task.js:10:3)
    at Gulp.task (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\undertaker\lib\task.js:13:8)
    at Object.<anonymous> (C:/Users/bogatyrev.p/Desktop/postcss-modules-example-master/gulpfile.babel.js:32:6)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at loader (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\babel-register\lib\node.js:144:5)
    at Object.require.extensions.<computed> [as .js] (C:\Users\bogatyrev.p\Desktop\postcss-modules-example-master\node_modules\babel-register\lib\node.js:154:7)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Module.require (internal/modules/cjs/loader.js:1044:19)
    at require (internal/modules/cjs/helpers.js:77:18) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

So, it's requires some more effort to migrate to gulp v4...

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

1 participant