Nuxt3.8:执行yarn dev时报错 Package subpath './decode' is not defined by "exports" in D:\phpstudy_pro\Nuxt\sddweb\node_modules\entities\package.json

使用Nuxt+vue3开发时,报错: Package subpath './decode' is not defined by "exports" in D:\phpstudy_pro\Nuxt\sdweb\node_modules\entities\package.json,

Package subpath './decode' is not defined by "exports" in D:\phpstudy_pro\Nuxt\sdweb\node_modules\entities\package.json

 

image

 

修复:

1.移除目录.output,.nuxt,node_modules,三个目录

image

 

2.修改package.json:

image

 3.删除package lock.json文件,执行 yarn install,重装依赖包及环境

image

 4.修改配置文件nuxt.config.ts,移除 Elment相关配置。

image

 

5.执行yarn dev,执行本地运行:

image

 如此即可修复问题。

 

总结:此问题为 Element-plus版本问题没同步导致,升级即可。

posted @ 2025-12-30 10:18  coderjim  阅读(0)  评论(0)    收藏  举报

更多知识请点击——

www.7017online.xyz