启动vue项目报错 | 您所在的位置:网站首页 › vue_api_server解析 › 启动vue项目报错 |
启动vue项目报错
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 ‘publicPath’. 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? } 解决报错其实很简单看这句话“ options has an unknown property ‘publicPath’.”,在vue.config.js文件中把publicPath属性删掉就行了 |
CopyRight 2018-2019 实验室设备网 版权所有 |