【vue】仿追书神器bug解决

 解决:当前目录(项目)下

 npm install stylus-loader css-loader style-loader --save-dev

2.cannot find module 'stylus'

 +

 解决:方法①翻看之前初始化项目生成的.vue文件,没用stylus语法写样式,所以去掉lang="stylus"即可  【此.vue文件中lang="stylus"是由于我设置webstorm建组件模板而有的】

 方法②安装stylus   npm install stylus --save-dev

3.npm run dev运行首页面总在默认的HelloFromVux

  解决:发现vue-cli和airyland/vux2初始生成的项目有俩个router,一个在router文件目录,一个在main.js中定义了。删掉main.js定义的HelloFromVux入口页即可。

4.vux中card组件使用报错 "$t" is not defined

解决:资料

此处我用的vux文档中card例子,属于第二种原因导致。

 

posted @ 2019-09-10 16:56  蓿苜  阅读(205)  评论(0)    收藏  举报