N
Nuxt5mo ago
Viridian

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:
(node:14820) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at C:\Users\[]\Documents\[]\nuxt\node_modules\@iconify\vue\package.json imported from C:\Users\[]\Documents\[]\nuxt\node_modules. Mapping specifiers ending in "/" is no longer supported.
(node:14820) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.mjs" for module request ".//index.mjs" matched to "./*" in the "exports" field module resolution of the package at C:\Users\[]\Documents\[]\nuxt\node_modules\@iconify\vue\package.json imported from C:\Users\[]\Documents\[]\nuxt\node_modules.
(node:14820) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at C:\Users\[]\Documents\[]\nuxt\node_modules\@iconify\vue\package.json imported from C:\Users\[]\Documents\[]\nuxt\node_modules. Mapping specifiers ending in "/" is no longer supported.
(node:14820) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.mjs" for module request ".//index.mjs" matched to "./*" in the "exports" field module resolution of the package at C:\Users\[]\Documents\[]\nuxt\node_modules\@iconify\vue\package.json imported from C:\Users\[]\Documents\[]\nuxt\node_modules.
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...
No description
5 Replies
Viridian
Viridian5mo ago
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.
Viridian
Viridian5mo ago
No description
Viridian
Viridian5mo ago
I would appreciate any input on the matter!
MaxT
MaxT5mo ago
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.
MaxT
MaxT5mo ago
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...
Want results from more Discord servers?
Add your server