DeprecationWarning when building with nuxt-icon
Hey all,
For some reason I'm getting strange DeprecationWarnings when using a new install of nuxt-icon and using the <Icon/> component in my code:
We're not really sure how to fix this; this wasn't happening before we installed it. I saw an open issue on GH but I wasn't sure if there was a sure-fire way to fix this? https://github.com/nuxt-modules/icon/issues/140
GitHub
[BUG] Deprecation Warning on Nuxt.js build due to package.json expo...
When building my Nuxt.js project which uses this package, I get a bunch of deprecation warnings, following this format: (node:2848) [DEP0166] DeprecationWarning: Use of deprecated double slash reso...
5 Replies
Removing the highlighted line in
node_modules/@iconify/vue/package.json
seems to make the deprecation warnings disappear, but I do not know if this is a good way to go about it.I would appreciate any input on the matter!
I am getting the same warnings with a different package.
Seems like Windows only. Seems like NPM only. Seems like during the server part of nuxt build only.
Maybe something weird in Nitro. I would file a bug there if I knew for sure it was Nitro related. But I'm not sure how to confirm that.
GitHub
DEP0155 and DEP0156 warnings during nitro build · Issue #2523 · unj...
Environment node v22.1.0 npm 10.8.1 nitro 2.9.6 Reproduction Windows only. Can't reproduce on Linux, so codesabdbox and others will not show the problem. Describe the bug Importing some 3-rd pa...