凡是过往,皆为序章。
  • 微信微信

CssSyntaxError:Unknown word / DeprecationWarning: Unhandled promise rejections are deprecated

CssSyntaxError:Unknown word / DeprecationWarning: Unhandled promise rejections are deprecated
        昨天项目用npm打包遇到问题,报UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): CssSyntaxError:  Unknown word         npm run dev是正常的,真是奇怪。百度查到以下解法,webpack还是要深入学习啊

vuejs2.0的双向绑定

vuejs2.0的双向绑定
直接上代码,如下: <!DOCTYPE html> <html> <head> <title>vue-test</title> </head> <body> <div id="app"> <span>title:</span><span v-text="text"></span><br> <span>Price:¥ </span><span v-text="price"></span><br> <span>Total:¥ </span><span v-text="tot...

main.js中未注册store导致出现:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"

main.js中未注册store导致出现:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"
        今天将emit/on方式传值修改为使用vuex,改完后发现个问题:[Vue warn]: Error in render: "TypeError: Cannot read property 'getters' of undefined"         查了下,原来是在main.js中写少了注册store         

[Vue warn]: Unknown custom element: <el-container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

[Vue warn]: Unknown custom element: <el-container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
        今天用下之前的VUE项目,引入element-ui中的el-container,却发现一直报Unknown custom element el-container。         查来查去,后面发现引入的element-ui版本是1.3.2,而1.XX系统官方已经放弃维护啦,最新的已经是2.4.10了。在1.XX是没有el-container的,版本太旧导致。。。  ...