npm deprecated and vulnerable dependencies
When running
pnpm run develop
on latest Gatsby version I get the following pop up a bunch of times:
(node:2069896) [DEP0040] DeprecationWarning: TheI also have one high and one moderate vulnerabilities that introduce breaking changes 💀 Anyone sorted this type of thing before and willing to dumb it down for me? I never really look into fixing these but this is for a project where an employer will look at the console and I want this shit cleaned up but no idea howpunycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created)
8 Replies
Have tried clearing caches, updating stuff, reinstalling things etc.
Going to keep throwing shit at the wall
https://www.npmjs.com/package/punycode
⚠️ Note that userland modules don't hide core modules. For example,maybe this will help?require('punycode')
still imports the deprecated core module even if you executed npm install punycode. Userequire('punycode/')
to import userland modules rather than core modules.
yea I saw people suggesting to add a / at the end where it's required in other modules
is that really the best fix? Editing the node modules?
seems to be it
surely I can update the modules to a version that calls punycode properly
the code module is deprecated in node 7
according to that link
well I'm on v22 so no damn idea why this crap is using it
no idea why anything uses that