前端
weixin_46705866
这个作者很懒,什么都没留下…
展开
-
echarts出现 “TypeError: Cannot read property ‘init‘ of undefined“报错
导入echarts时用:import echarts from 'echarts' 出现 “Cannot read property ‘init’ of undefined” 报错解决办法:改成 import * as echarts from 'echarts' 后解决。原创 2021-01-18 21:09:08 · 332 阅读 · 1 评论 -
初始化组件时出现错误
ERROR Failed to compile with 1 error下午6:04:17 error in ./src/App.vueModule Error (from ./node_modules/eslint-loader/index.js):E:\vscode\workspace\part06-vue\vue_shop1\src\App.vue 3:1 error Trailing spaces not allowed no-trailing-spaces✖ 1 pro.原创 2021-01-18 21:07:26 · 1852 阅读 · 0 评论 -
在安装webpack时出现错误
在安装webpack时出现错误npm ERR! code ENOSELFnpm ERR! Refusing to install package with name "webpack" under a packagenpm ERR! also called "webpack". Did you name your project the samenpm ERR! as the dependency you're installing?npm ERR!npm ERR! For more infor原创 2021-01-18 20:39:56 · 344 阅读 · 0 评论 -
配置自动打包功能webpack-dev-server出错
运行npm run dev遇到的问题:Error: Cannot find module 'webpack-cli/bin/config-yargs’internal/modules/cjs/loader.js:1068throw err;^Error: Cannot find module ‘webpack-cli/bin/config-yargs’Require stack:**原因:**因为webpack-cli的新版本对webpack-dev-server版本的不兼容,我安装是是4原创 2021-01-18 20:47:05 · 389 阅读 · 0 评论 -
打包处理css文件时出错
因为需要 通过 loader 打包非 js 模块,否则会报错ERROR in ./src/css/1.css 1:3Module parse failed: Unexpected token (1:3)You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/conc原创 2021-01-18 20:52:58 · 342 阅读 · 0 评论