在vue3,div中使用slot,然后正常serve报错
报错内容
Error loading vue.config.js:
ERROR TypeError: defineConfig is not a function
TypeError: defineConfig is not a function
at Object. (D:\vscode\Vue-01\supermall\vue.config.js:2:18)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Service.loadUserOptions (D:\vscode\Vue-01\supermall\node_modules@vue\cli-service\lib\Service.js:301:22)
at Service.init (D:\vscode\Vue-01\supermall\node_modules@vue\cli-service\lib\Service.js:73:30)
at Service.run (D:\vscode\Vue-01\supermall\node_modules@vue\cli-service\lib\Service.js:206:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! supermall@0.1.0 serve: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the supermall@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\win10\AppData\Roaming\npm-cache_logs\2022-04-20T11_24_19_592Z-debug.log
基本上把所有的版本都重装了一边,还是报错