1、node-sass和sass-loader版本对应问题
sass-loader 4.1.1,node-sass 4.3.0
sass-loader 7.0.3,node-sass 4.7.2
sass-loader 7.3.1,node-sass 4.7.2
2、vue打包时TypeError: Cannot read property 'tapPromise' of undefined
"compression-webpack-plugin"版本过高,需降低版本
卸载
npm uninstall compression-webpack-plugin
安装
npm i -D compression-webpack-plugin@6.1.1
3、开发时vue问题:Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "taskContentList"
问题点是:在子组件中直接将prop传递的值重新赋值,这是不行的
解决办法:
子组件中: this.$emit('handleChangePropValue',data)
父组件更新数据: handleChangePropValue(res) {this.propValue = res}