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 · 2 comments
Open

punycode is deprecated #38

jmims-magnusdigital opened this issue Dec 8, 2024 · 2 comments

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

@max-nextcloud
Copy link

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

Had the same error. Downgrading node-stdlib-browser to 1.2.0 fixes it. I suspect this change is the cause:
https://github.com/niksy/node-stdlib-browser/pull/32/files#diff-182746044a506bd2270c273066a65e28f328ea0409e0b509e651c0dad1b9de2bR41

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

3 participants