启动vue项目报错 您所在的位置:网站首页 vue_api_server解析 启动vue项目报错

启动vue项目报错

#启动vue项目报错| 来源: 网络整理| 查看: 265

启动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 实验室设备网 版权所有