The error occurs while importing shared/shared-component.vue in package1/src/index.js
import SharedComponent from '../../shared/shared-component.vue'
What is expected?
No errors
What is actually happening?
ERROR in ../shared/shared-component.vue?vue&type=template&id=e37cff36 (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[1]!./node_modules/vue-loader/dist/index.js??ruleSet[1].rules[2].use[0]!../shared/shared-component.vue?vue&type=template&id=e37cff36) 1:0-88
Module not found: Error: Can't resolve 'vue' in '/project/shared'
Version
16.8.3
Reproduction link
github.com
Steps to reproduce
Project structure
The error occurs while importing
shared/shared-component.vue
inpackage1/src/index.js
What is expected?
No errors
What is actually happening?