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