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

Closed
charalamm opened this issue Feb 1, 2022 · 1 comment
Closed

ReferenceError: primordials is not defined #232

charalamm opened this issue Feb 1, 2022 · 1 comment

Comments

@charalamm
Copy link

I am new to javascript. I am trying to create a chrome extension by following the steps of README.md.

Everything works fine until the gulp commands. When attempting to run any of the:

gulp babel

gulp watch

gulp build

I get the error:

[08:56:55] Requiring external module @babel/register
ReferenceError: primordials is not defined
    at fs.js:40:5
    at req_ (/home/charalamm/Documents/myProjects/chrome_extension/extension/node_modules/natives/index.js:143:24)
    at Object.req [as require] (/home/charalamm/Documents/myProjects/chrome_extension/extension/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (/home/charalamm/Documents/myProjects/chrome_extension/extension/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Module._compile (/home/charalamm/Documents/myProjects/chrome_extension/extension/node_modules/pirates/lib/index.js:136:24)
    at Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Object.newLoader [as .js] (/home/charalmm/Documents/myProjects/chrome_extension/extension/node_modules/pirates/lib/index.js:141:7)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
@motonuko
Copy link

motonuko commented Mar 5, 2022

Follow the comments in #222. I downgraded node version to v10.18.0 and it works now

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

3 participants