异步组件不生效
来源:4-5 动态组件切换

慕码人6092962
2020-02-05
使用异步组件不生效,报错
’home’: () => import(’@c/Home.vue’)
ERROR Failed to compile with 1 errors 23:21:29
This dependency was not found:
- core-js/modules/es.object.to-string in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Main.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save core-js/modules/es.object.to-string
正常引入组件没有问题
写回答
1回答
-
慕码人6092962
提问者
2020-02-05
删除node_modules,后重新安装一遍好了
012020-02-06
相似问题