![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue项目常见报错
么心么肺
不求风sao惊天下,但求猥琐动世人 ...
展开
-
ElementUI使用本地CDN时文件图标字体无法正常显示的解决方法
问题描述官方CDN:引入并使用图标字体无异常<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"><script src="https://unpkg.com/element-ui/lib/index.js"></script>将以上js和css地址复制到浏览器地址栏,下载到本地并使用,图标字体丢失<link href="./stati..原创 2021-02-24 16:33:48 · 1684 阅读 · 0 评论 -
npm install报错(npm ERR! Unexpected end of JSON input while parsing near )-解决方案
执行npm install的时候报错npm ERR! Unexpected end of JSON input while parsing near '...sh_time":141072930277'直接执行 npm cache clean --force, 如果执行成功,再npm install即可。如果执行失败,请先升级npm,即npm i -g npm, 最后再执行npm cac...原创 2020-09-28 18:12:57 · 237 阅读 · 0 评论 -
No PostCSS Config found in
vue项目启动时报错:Module build failed: Error: No PostCSS Config found in: /Users/解决方案:在根目录里面新建一个文件postcss.config.js ,在里面添加代码:module.exports = { plugins: { 'autoprefixer': {browsers: 'last 5 versio...原创 2019-12-10 23:39:43 · 342 阅读 · 0 评论 -
ES6扩展运算符(...)无法解析
Syntax Error:Unexpected token(203,8)1. npm install babel-plugin-transform-object-rest-spread2. 在根目录配置.babelrc文件识别es6语法{ "presets": [ ["env", { "modules": false, "targets": { "browsers"...原创 2019-12-10 23:36:09 · 2571 阅读 · 4 评论