关闭

nuxt3项目编译时报错Use of deprecated trailing slash pattern mapping "./"

瞎溜达 昨天 ⋅ 0 阅读

nuxt3项目在win11下直接运行时正常,发布编译时控制台报错如下:

(node:12116) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at D:\workspace\app\node_modules\@vue\shared\package.json imported from D:\workspace\app\node_modules\nuxt\dist\core\runtime\nitro\templates\error-dev.js. Mapping specifiers ending in "/" is no longer supported.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:12116) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at D:\workspace\app\node_modules\@vueuse\core\package.json imported from D:\workspace\app\.nuxt\dist\server\server.mjs. Mapping specifiers ending in "/" is no longer supported.
(node:12116) [DEP0155] DeprecationWarning: Use of deprecated trailing slash pattern mapping "./" in the "exports" field module resolution of the package at D:\workspace\app\node_modules\@popperjs\core\package.json imported from D:\workspace\app\.nuxt\dist\server\server.mjs. Mapping specifiers ending in "/" is no longer supported.

 

此问题解决办法是在linux系统上编译通过,是win依赖库BUG导致!


全部评论: 0

    我有话说: