报错
sakuraneo
我很懒,没有简介
展开
-
webpack Cannot find module ‘webpack-cli/bin/config-yargs‘-
在使用 webpack-dev-server 时,打包会出现这个错误,主要是由于webpack-cli和webpack-dev-server的版本不一致导致的,将两者版本统一就可以了比如webpack4使用的是webpack-cli4,但是现在只有webpack-dev-server3,就降低webpack-cli版本即可。使用npm view webpack-cli versions查看当前版本,选择3版本最新的包安装2020.12月最新的能适配的版本如下...原创 2020-12-03 15:01:23 · 189 阅读 · 1 评论 -
Custom elements in iteration require ‘v-bind:key‘ directives.eslint-plugin
在使用v-for的时候,每一个相同的标签都需要添加一个key,在获取后端接口的时候里面一般都带有了一个id,可将将之与key绑定,比如: :key=“item.id”,添加唯一标识符就可以了。原创 2020-10-26 16:08:56 · 401 阅读 · 0 评论 -
To install them, you can run: npm install --save core-js/modules/es.array.index-of core-js/modules/e
To install them, you can run: npm install --save core-js/modules/es.array.index-of core-js/modules/es.object.to-stringcore-js/modules/es.regexp.exec core-js/modules/es.string.replaceyarn serve之后显示有别的包没有安装先ctrl+c退出使用npm i [email protected]然后在yarn serve就原创 2020-10-23 20:21:10 · 10843 阅读 · 0 评论