问题bug
Starting development server... ERROR ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'devServer'. These properties are valid: object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? } ValidationError: Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'devServer'. These properties are valid: object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? } at validate (D:\project\零一电科\技术资料\lingyidianke\lingyidianke\node_modules\webpack-dev-server\node_modules\schema-utils\dist\validate.js:158:11) at new Server (D:\project\零一电科\技术资料\lingyidianke\lingyidianke\node_modules\webpack-dev-server\lib\Server.js:270:5) at serve (D:\project\零一电科\技术资料\lingyidianke\lingyidianke\node_modules\@vue\cli-service\lib\commands\serve.js:194:20) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
问题,出在Vue.config.json中,我注释掉了就可以了