天天看點

vscode 報錯第一季

使用vscode寫vue時,

遇到以下報錯:

This relative module was not found:

  • …/…/…/vue-temp/vue-editor-bridge in ./node_modules/[email protected]@babel-loader/lib!./node_modules/[email protected]@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’進而導緻報錯.

繼續閱讀