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

Use in gulp 4 is not possible. #129

Open
moacir-selinger opened this issue Jul 24, 2020 · 1 comment
Open

Use in gulp 4 is not possible. #129

moacir-selinger opened this issue Jul 24, 2020 · 1 comment

Comments

@moacir-selinger
Copy link

Due to the evolution of our project, it was necessary to update the version of our gulp to ˆ4.x.x and the version of our Nodejs to ˆ12.x.x.

After these updates, the following error related to gulp-ngdocs occurs:
ReferenceError: primordials is not defined at fs.js:40:5 at req_ (/Users/selinger/Documents/controlle/zze-front/node_modules/natives/index.js:143:24) at Object.req [as require] (/Users/selinger/Documents/controlle/zze-front/node_modules/natives/index.js:55:10) at Object.<anonymous> (/Users/selinger/Documents/controlle/zze-front/node_modules/gulp-ngdocs/node_modules/graceful-fs/fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:1236:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1257:10) at Module.load (internal/modules/cjs/loader.js:1085:32) at Function.Module._load (internal/modules/cjs/loader.js:950:14) at Module.require (internal/modules/cjs/loader.js:1125:19) at require (internal/modules/cjs/helpers.js:75:18)

I would be very grateful if a new version was made available for gulp 4, as the whole doc of our project depends on it to work.

Thank you!

@IvanGarzon
Copy link

@moacir-selinger I don't know if this helps but you can add this to your package.json file.

{
  "name": "my-app", 
  "scripts": {
    "preinstall": "npx npm-force-resolutions"
  },
  "resolutions": {
    "graceful-fs": "^4.2.4"
  }
}

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

2 participants