Skip to content

问题收集

mac系统 uniapp vue3.0 + vite 版本 vuex编译报错

现象:

uni-app报错 [plugin:commonjs--resolver] Package subpath './dist/vuex.esm-bundler.js' is not defined by "exports" in node_modules/vuex/package.json

解决:

手动改了vuex包里面的package.json解决的,在 package.json中新加如下内容:

json
"./*": "./*",
"./": "./"

创作不易请尊重他人劳动成果,未经授权禁止转载!
Released under the MIT License.