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导致!
注意:本文归作者所有,未经作者允许,不得转载