vuejs / vuex

🗃️ Centralized State Management for Vue.js.
https://vuex.vuejs.org
MIT License
28.42k stars 9.58k forks source link

MAC OS Node 17, Uniapp (Vue3.0 + Vite) vuex compilation error #2178

Closed You00 closed 2 years ago

You00 commented 2 years ago

Version

4.0.2

Reproduction link

Steps to reproduce

Uni-app (VUE3 / Vite version) starts the project using vuex

What is expected?

The project can start normally

What is actually happening?

error:[vite] [plugin:vite:import-analysis] Package subpath './dist/vuex.esm-bundler.js' is not defined by "exports" in /uni-app-vue3.0/node_modules/vuex/package.json


For this problem, the package.json file that vuex relies on is currently manually changed (./ to./*); Hopefully the authorities can fix it

yyx990803 commented 2 years ago

Should be fixed by 397e9fb