vue-element-admin icon indicating copy to clipboard operation
vue-element-admin copied to clipboard

运行npm run dev出错

Open iiceCoke opened this issue 2 years ago • 0 comments

运行npm run dev出现以下错误,有没有大佬知道什么原因: INFO Starting development server... ERROR ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.

  • configuration[0] should be an array: [non-empty string | object { from, to?, context?, toType?, test?, force?, ignore?, flatten?, cache?, transform?, transformPath?, … }, ...] ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
  • configuration[0] should be an array: [non-empty string | object { from, to?, context?, toType?, test?, force?, ignore?, flatten?, cache?, transform?, transformPath?, … }, ...] at validate (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/schema-utils/dist/validate.js:98:11) at new CopyPlugin (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/copy-webpack-plugin/dist/index.js:26:30) at /Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/webpack-chain/src/Plugin.js:14:18 at Object.toConfig (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/webpack-chain/src/Plugin.js:78:22) at /Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/webpack-chain/src/Config.js:129:63 at Array.map () at module.exports.toConfig (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/webpack-chain/src/Config.js:129:40) at Service.resolveWebpackConfig (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/@vue/cli-service/lib/Service.js:245:34) at PluginAPI.resolveWebpackConfig (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/@vue/cli-service/lib/PluginAPI.js:132:25) at serve (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/@vue/cli-service/lib/commands/serve.js:75:31) at Service.run (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/@vue/cli-service/lib/Service.js:230:12) at Object. (/Users/zhangtao/Documents/Development/workspace/Tsingland/tsingland-web/node_modules/@vue/cli-service/bin/vue-cli-service.js:36:9) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12)

Other relevant information(格外信息)

  • My OS:MacOS 12.5.1
  • Node.js version:v16.14.2
  • vue-element-admin version:2.9.6

iiceCoke avatar Jul 21 '23 05:07 iiceCoke