K
K
kirzzzz2020-01-30 13:29:33
gulp.js
kirzzzz, 2020-01-30 13:29:33

Why does this error pop up when running Gulp?

[email protected] MINGW64 ~/OneDrive/Documents/ONLINE POSTING SITE/Layout Design/ready_html
$ gulp
fs.js:35
} = primordials;
^

ReferenceError: primordials is not defined
at fs.js:35:5
at req_ (C:\Users\shche\OneDrive\Documents\ONLINE POSTING SITE\Layout Layout\ready_html\node_modules\natives\index.js:143:24 )
at Object.req [as require] (C:\Users\shche\OneDrive\Documents\ONLINE POSTING SITE\Layout Design\ready_html\node_modules\natives\index.js:55:10)
at Object. (C:\Users\shche\OneDrive\Documents\SITE FOR ONLINE POSTING\Layout Layout\ready_html\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules) /cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load( internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1040:19)
at require (internal/modules/cjs/helpers.js:72:18)

[email protected] MINGW64 ~/OneDrive/Documents/SITE FOR ONLINE RECORDS/Layout layout/ready_html
$

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyach Gor, 2020-01-30
@kirzzzz

Came across this bug. As we found out (ReferenceError: primordials is not defined) this is a bug that occurs on node.js version >= version 12 when working with gulp version 3.9.1 and below. I didn’t find how to fix it - I had to roll back the node.js version to the latest version 11
ps. I will supplement the answer ) a solution was found without the need to downgrade node.js https://timonweb.com/javascript/how-to-fix-referen...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question