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

punycode is deprecated #38

Open
jmims-magnusdigital opened this issue Dec 8, 2024 · 1 comment
Open

punycode is deprecated #38

jmims-magnusdigital opened this issue Dec 8, 2024 · 1 comment

Comments

@jmims-magnusdigital
Copy link

In newer versions of node, punycode triggers a deprecation warning.

(node:91080) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
@starker-xp
Copy link

In nuxt3 i have the same problem

ERROR [nuxt] [request error] [unhandled] [500] Directory import '\node_modules\node-stdlib-browser\node_modules\punycode' is not supported resolving ES modules imported from \node_modules\node-stdlib-browser\esm\proxy\url.js
Did you mean to import "punycode/punycode.js"?

I replace in file <MyProject>\node_modules\node-stdlib-browser\esm\proxy\url.js:

import require$$0 from 'punycode/';

by:

import require$$0 from 'punycode/punycode.js';

And everything works fine.

On eslint's github, they suggest simply changing the lib.
eslint/eslint#18762, eslint/eslint#19007

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