使用vscode写vue时,
遇到以下报错:
This relative module was not found:
- …/…/…/vue-temp/vue-editor-bridge in ./node_modules/_babel-loader@7.1.5@babel-loader/lib!./node_modules/_vue-loader@13.7.3@vue-loader/lib/selector.js?type=script&index=0!./src/components/page/listOrganizationCode.vue。
解决方法:
此时在listOrganizationCode.vue存在import func from ‘…/…/…/vue-temp/vue-editor-bridge’,将其删除即可.
引入此vue-temp/vue-editor-bridge的原因:
在写function函数时,写到func在按tab键,会自动引入import func from '…/…/…/vue-temp/vue-editor-bridge’从而导致报错.