引入ButterflyVue 失败

gpfsuwkq  于 4个月前  发布在  其他
关注(0)|答案(2)|浏览(80)

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.

mwngjboj

mwngjboj1#

ts的,我看看。好了给你反馈。

jjhzyzn0

jjhzyzn02#

I had the same problem just use:
import {ButterflyVue} from 'butterfly-vue';
butterfly-vue exports multiple objects

相关问题