butterfly
butterfly copied to clipboard
引入ButterflyVue 失败
The current behavior
import ButterflyVue from 'butterfly-vue';
失败,解析不到对应的组件:
Could not find a declaration file for module 'butterfly-vue'. '~/node_modules/butterfly-vue/dist/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/butterfly-vue
if it exists or add a new declaration (.d.ts) file containing declare module 'butterfly-vue';
Vetur(7016)
The expected behavior
Your environment(such as: Butterfly version、Browser version、OS and so on)
Butterfly version
:
"butterfly-vue": "^1.0.3", "butterfly-dag": "^4.1.4"
Browser version
:
OS
:
Steps To Reproduce, Maybe you can provide a simple demo.
ts的,我看看。好了给你反馈。
I had the same problem just use:
import {ButterflyVue} from 'butterfly-vue';
butterfly-vue exports multiple objects