-
Notifications
You must be signed in to change notification settings - Fork 535
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
Node 20.11 - Deprecated double slash resolving #1286
Comments
I'm using node |
I have tried different use cases now. The messages only appear on Windows with the "build" command and default option value "ssr:true". With "generate" and "dev" commands - no warnings. If set "ssr:false" then "build" command also no warning. It is only on Windows, on Ubuntu - no warnings. |
I encountered the same error on Windows and also about Iconify Vue
|
We are using |
Does anyone know how to solve this problem? |
Oh, it's a problem to other package instead of nuxt. For me, it's caused by the package "@sxzz/popperjs-es". I am not using @iconify/vue. But they seem to have the same problem. |
Same here, happening to multiple packages.
|
我也是这样的,哎 |
me too;
|
Confirmed: ------------------------------
- Operating System: Windows_NT
- Node Version: v20.12.2
- Nuxt Version: 3.11.2
- CLI Version: 3.11.1
- Nitro Version: 2.9.6
- Package Manager: pnpm@9.0.6
- Builder: -
- User Config: colorMode, css, devtools, experimental, extends, fonts, hooks, i18n, image, imports, modules, nitro, pinia, router, routeRules, runtimeConfig, security, seo, ssr, studio, supabase, telemetry, typescript, ui, features
- Runtime Modules: @nuxt/content@2.12.1, @nuxt/eslint@0.3.10, @nuxt/fonts@0.6.1, @nuxt/image@1.6.0, @nuxt/ui@2.15.2, @nuxthq/studio@1.0.13, @nuxtjs/seo@2.0.0-rc.10, @nuxtjs/supabase@1.2.1, @pinia/nuxt@0.5.1, @unlok-co/nuxt-stripe@3.0.0, @vueuse/nuxt@10.9.0, nuxt-og-image@2.2.4, nuxt-security@1.4.2, @nuxtjs/i18n@8.3.1
- Build Modules: -
------------------------------ And build continues for indefinite time, with following logs: (node:25940) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.js" for module request ".//index.js" matched to "./*" in the "exports" field module resolution of the package at E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules\.pnpm\nitropack@2.9.6_encoding@0.1.13\node_modules.
(node:25940) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.json" for module request ".//index.json" matched to "./*" in the "exports" field module resolution of the package at E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules\.pnpm\nitropack@2.9.6_encoding@0.1.13\node_modules.
(node:25940) [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 E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules.
(node:25940) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.cjs" for module request ".//index.cjs" matched to "./*" in the "exports" field module resolution of the package at E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules.
(node:25940) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.js" for module request ".//index.js" matched to "./*" in the "exports" field module resolution of the package at E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules.
(node:25940) [DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.json" for module request ".//index.json" matched to "./*" in the "exports" field module resolution of the package at E:\my-project\node_modules\@iconify\vue\package.json imported from E:\my-project\node_modules. |
Same issue, have tried:
|
The issue still persists. Although it doesn't appear on Ubuntu, it affects the build speed.
|
here also, any temporary solution? I can't publish into production using Vercel with same error it also related to @iconify/utils @iconify/vue packages (node:22644) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at D:\Code\Nuxt\v3\projects\nuxt3-content2-tailwind-portfolio-v4\node_modules\@iconify\utils\package.json imported from D:\Code\Nuxt\v3\projects\nuxt3-content2-tailwind-portfolio-v4\node_modules. Mapping specifiers ending in "/" is no longer supported.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:22644) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at D:\Code\Nuxt\v3\projects\nuxt3-content2-tailwind-portfolio-v4\node_modules\@iconify\vue\package.json imported from D:\Code\Nuxt\v3\projects\nuxt3-content2-tailwind-portfolio-v4\node_modules. Mapping specifiers ending in "/" is no longer supported. |
Do you reproduce this with a clean app with only the |
This should be fixed with unjs/mlly#278 (it might take a bit until it bubbles up the dependency tree) |
Can anyone confirm that this is now fixed? Feel free to reopen if it is not. |
Environment
Version
2.12.3
Reproduction
https://stackblitz.com/
Description
Building Nuxt app in Node 20.11 with NuxtUI 2.12.3 issues many warnings about using of deprecated trailing slash pattern mapping. Some of them:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: