Closed itsazzad closed 2 years ago
I think this has to do with some compatibility issue with the node version. I was using node 13.15.0 and was getting this issue, but the issue was gone after I changed the node version to 10.16.0
Update Gulp locally to 4.0.0 and it starts to work. Though I run into other issues so not sure if this was related or not.
It works!!!
➜ nvm ls
v8.9.0
v10.18.0
v10.18.1
-> v12.14.0
system
➜ gulp babel
[11:24:24] Requiring external module @babel/register
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (/tmp/my-new-chrome-extension/node_modules/natives/index.js:143:24)
at Object.req [as require] (/tmp/my-new-chrome-extension/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/tmp/my-new-chrome-extension/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Module._compile (/tmp/my-new-chrome-extension/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Object.newLoader [as .js] (/tmp/my-new-chrome-extension/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
➜ nvm use v10.18.0
Now using node v10.18.0 (npm v6.13.4)
➜ gulp babel
[11:25:47] Requiring external module @babel/register
[11:25:48] Using gulpfile /tmp/my-new-chrome-extension/gulpfile.babel.js
[11:25:48] Starting 'babel'...
[11:25:48] Finished 'babel' after 85 ms
gulp watch