NuxtN
Nuxt2y ago
6 replies
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.


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
image.png
GitHub
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...
[BUG] Deprecation Warning on Nuxt.js build due to package.json expo...
Was this page helpful?