- 博客(3)
- 收藏
- 关注
原创 vue-cli4项目打包后,双击index.html页面空白
vue-cli4项目打包后,在解压后的dist文件夹里双击双击index.html页面空白,部署到服务器上也有问题原因:css和js文件路径配置成绝对路径了,意思域名下就是css和js文件,不包含一二级文件解决方法:把css和js文件配置成相对路径,vue-cli4配置通配的路径keyword为publicPath,并且在vue.config.js文件里配置,如下图:...
2021-12-04 18:45:39 606
原创 报错The engine “node“ is incompatible with this module. Expected version “>=10.16.0“. Got “10.15.0“
yarn add vue-router@4.0.0-beta.6时报错error vite@1.0.0-rc.4: The engine "node" is incompatible with this module. Expected version ">=10.16.0". Got "10.15.0"error Found incompatible module.意思是:vite@1.0.0-rc.4:引擎“节点”与此模块不兼容。预期node版本“>=10.16.0”,现在是“10.
2020-08-19 15:30:58 3684
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人