首先先上报错信息:
failed to load config from /home/huanglifen/桌面/lianXi/Vue/middleground/vite.config.cjs
error when starting dev server:
TypeError: defaultLoader is not a function
at Object.require.extensions.<computed> [as .cjs] (/home/huanglifen/桌面/lianXi/Vue/middleground/node_modules/vite/dist/node/chunks/dep-689425f3.js:62009:13)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)
at Module.require (node:internal/modules/cjs/loader:1013:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/home/huanglifen/桌面/lianXi/Vue/middleground/vite.config.cjs:33:36)
at Module._compile (node:internal/modules/cjs/loader:1109:14)
at Object.require.extensions.<computed> [as .cjs] (/home/huanglifen/桌面/lianXi/Vue/middleground/node_modules/vite/dist/node/chunks/dep-689425f3.js:62006:20)
at Module.load (node:internal/modules/cjs/loader:989:32)
at Function.Module._load (node:internal/modules/cjs/loader:829:14)