mitt pinia未安装
VITE v5.0.12 ready in 644 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
Error: The following dependencies are imported but could not be resolved:
mitt (imported by /Users/wangyuqiang/untitled_folder/homework/zhongyiyaoziyuan/src/utils/bus.js)
pinia (imported by /Users/wangyuqiang/untitled_folder/homework/zhongyiyaoziyuan/src/pinia/modules/router.js)
Are they installed?
at file:///Users/wangyuqiang/untitled_folder/homework/zhongyiyaoziyuan/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:65506:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/wangyuqiang/untitled_folder/homework/zhongyiyaoziyuan/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:64906:38
解决办法:
npm install mitt
npm install pinia