vueJS报错记录列表以及解决方案

1、在elem团队新出的框架里,navMenu,控制台报missing required prop "index"

解决方案:

添加index的值

 

 

2、Duplicate keys detected: ''. This may cause an update error.found in---> <OrderManagement> at src\views\orderManagement\orderManagement.vue

解决办法

这是因为有重复的:key 你可以把几个v-for中的key换成不同的值 就可以了

 

3、No PostCSS Config found

解决方案

解决方案:

在项目根目录新建postcss.config.js文件,并对postcss进行配置:

module.exports = {  
  plugins: {  
    'autoprefixer': {browsers: 'last 5 version'}  
  }  
} 

 

posted @ 2018-10-23 16:14  saucxs  阅读(729)  评论(0编辑  收藏  举报