项目场景:
uniapp 小程序报错
删掉一个 vue 页面后报错
15:27:45.870 Module build failed (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader/index.js):
15:27:45.875 Error: ENOENT: no such file or directory, open 'E:\HBuilderProjects\dc_iot_mt\pages\sys\workbench\index.vue'
原因分析:
删除页面时都要手动删除pages.json 中的路由,否则会报错!