Open rosenLucky opened 2 years ago
Project A relies on a UI framework and uses dynamic components to render the components in the UI framework
In project B, a is used in the way of NPM link, and the UI framework is also mounted in main.ts
However, after running, the B project shows that the components in the UI framework are not registered
A Something like this
<component :is="tag"/> //tag is props
B Something like this
import A from 'A' <A tag="el-input" />
show Unknown custom elemen el-input If project A is written by options API, there is no problem
Project A relies on a UI framework and uses dynamic components to render the components in the UI framework
In project B, a is used in the way of NPM link, and the UI framework is also mounted in main.ts
However, after running, the B project shows that the components in the UI framework are not registered
A Something like this
<component :is="tag"/> //tag is props
B Something like this
show Unknown custom elemen el-input If project A is written by options API, there is no problem