DEV Community

ReferenceError: primordials is not defined

Brittany on August 16, 2019

I've started to work on a project that I haven't really touched since 2017. As you can imagine, I'm getting tons of warnings due to all of my node ...
Collapse
 
krunal79flutter profile image
Krunal79-flutter

I am Having issue In Node Js
I have installed node modules by npm install, then I tried to do gulp sass-watch in command prompt. After that I got the below response.

[18:18:32] Requiring external module babel-register
fs.js:27
const { Math, Object, Reflect } = primordials;
^

ReferenceError: primordials is not defined
Have tried this before gulp sass-watch

npm -g install gulp-cli

Find Full Post icetutor.com/question/how-to-fix-r...

Collapse
 
afondevi profile image
Alexy

Hello !
So what is the solution to continue to use sequelize with this error ? :)

thanks !

Collapse
 
only8britt profile image
Brittany • Edited

Hi!!
Removing the depreciated package gulp-utils solved the issue for me.

A few questions:

  • When you run npm update or npm install do you see anything related to a deprecated package?
  • Are you using the sequelize-cli package?
  • What command are you running that result in ReferenceError: primordials is not defined

If you have a link to the repo I would love to look into it as well!

Collapse
 
afondevi profile image
Alexy

Ok I downgrade node to 11.15.0 and it works :) thanks

Collapse
 
khwilo profile image
Khwilo Kabaka

Switching to a different version worked for me. In my case, I switched to a node version which is less than 12.

Collapse
 
yafetissac profile image
yafetissac