vite + vue3 + pinia 中 No matching export in “node_modules/[email protected]@vue-demi/lib/index.mjs“

Problem: This problem occurred in cmd when starting the project

Reason: I downloaded the pinia in this project myself. When downloading, I directly downloaded the default version of pinia. At this time, this problem will occur if this version of pinia is not compatible with vite.

Solution: Re-download a lower version of pinia

Like delete the previous version of

npm uninstall pinia

Download the lower version of pinia, I recommend 2.0.35

npm and [email protected] -S

That's OK

 

Guess you like

Origin blog.csdn.net/m0_52775179/article/details/132082348