You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[dev problem] The punycode module is deprecated #4166
Since ~4 weeks, the UI build (npm run build) throws out a red warning
(node:27944) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
#(Use node --trace-deprecation ... to show where the warning was created)
I don't know where this tool gets used, or what is the "userland alternative" for punycode. But it looks like the clock is ticking and we need an alternative solution.
@softhack007 What NodeJS and npm version do you use? (node -v, npm -v)
I could not reproduce the warning that npm run build should throw. @blazoncek Do you see this warning?
Are we talking about 0_15 branch?
And the warnings at npm install are from the inliner package. It has not been updated in 7 years.
To fix this, we would have to find an alternative to inliner.
After a short search I found web-resource-inliner. At first glance it looks like a good alternative, but I'll have to take a closer look when I have more time.
I am also having a problem with the UI build for 0_15 (I am trying to test the new translation functionality).
npm run build => Error: Cannot find module 'inliner'
And I just installed 'inliner', and successfully invoked it from the command line.
Node.js v22.11.0
Can I have a workaround please.
** EDIT ** I ran 'npm ci' (whatever that does) as blazoncek suggested, and then 'npm run build' ran to completion.
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
Activity
softhack007 commentedon Sep 30, 2024
There are additional deprication warnings at
npm installblazoncek commentedon Sep 30, 2024
I am not sure, but I think npm is mainly used for building include files from html.
Perhaps @w00000dy may know more.
w00000dy commentedon Oct 1, 2024
I'll have a look at it later.
w00000dy commentedon Oct 1, 2024
@softhack007 What NodeJS and npm version do you use? (
node -v,npm -v)I could not reproduce the warning that
npm run buildshould throw. @blazoncek Do you see this warning?Are we talking about
0_15branch?w00000dy commentedon Oct 1, 2024
And the warnings at
npm installare from the inliner package. It has not been updated in 7 years.To fix this, we would have to find an alternative to inliner.
softhack007 commentedon Oct 1, 2024
yes, I get these messages on the 0_15 branch
node v22.7.0
npm 10.8.2
both on windows 11 64bit- i've recently installed that computer.
Tomorrow i can check if the same message also pop up on my Linux machine,
w00000dy commentedon Oct 1, 2024
I used node v20.17. I will test it again with node v22.
w00000dy commentedon Oct 1, 2024
Okay, now I also get the warning with node v22.
This warning comes from the inliner package.
I think we need to look for an alternative here.
w00000dy commentedon Oct 1, 2024
After a short search I found web-resource-inliner. At first glance it looks like a good alternative, but I'll have to take a closer look when I have more time.
blazoncek commentedon Oct 2, 2024
I am using v20 and I do not see any warnings during
npm run buildI avoidnpm installbut rather usenpm ciSojourneer commentedon Nov 3, 2024
I am also having a problem with the UI build for 0_15 (I am trying to test the new translation functionality).
npm run build => Error: Cannot find module 'inliner'
And I just installed 'inliner', and successfully invoked it from the command line.
Node.js v22.11.0
Can I have a workaround please.
** EDIT ** I ran 'npm ci' (whatever that does) as blazoncek suggested, and then 'npm run build' ran to completion.
fix wled#4166
fix wled#4166
github-actions commentedon Mar 4, 2025
Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
Thank you for using WLED! ✨
w00000dy commentedon Mar 10, 2025
PR #4266 fixes this.
fix wled#4166
fix wled#4166