Skip to content

Fix gulp primordials error#52

Open
mgdhs wants to merge 2 commits into
alphagov:gh-pagesfrom
mgdhs:feature/fix-gulp-primordials
Open

Fix gulp primordials error#52
mgdhs wants to merge 2 commits into
alphagov:gh-pagesfrom
mgdhs:feature/fix-gulp-primordials

Conversation

@mgdhs

@mgdhs mgdhs commented Jun 21, 2020

Copy link
Copy Markdown

When running gulp I get the following error

% gulp
fs.js:39
} = primordials;
    ^

ReferenceError: primordials is not defined
    at fs.js:39:5
    at req_ (.../accessibility-tool-audit/node_modules/natives/index.js:143:24)
    at Object.req [as require] (.../accessibility-tool-audit/node_modules/natives/index.js:55:10)
    at Object.<anonymous> (.../accessibility-tool-audit/node_modules/graceful-fs/fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:1147:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
    at Module.load (internal/modules/cjs/loader.js:996:32)
    at Function.Module._load (internal/modules/cjs/loader.js:896:14)
    at Module.require (internal/modules/cjs/loader.js:1036:19)
    at require (internal/modules/cjs/helpers.js:72:18)

This is an an issue with gulp 3 and nodejs 12.

The fix is to use npm-force-resolutions. Credit to Valentin on Stack Overflow for describing the general issue and the fix.

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

Successfully merging this pull request may close these issues.

1 participant