butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

引入ButterflyVue 失败

Open dafanshu opened this issue 3 years ago • 2 comments

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.

dafanshu avatar Aug 26 '21 04:08 dafanshu

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

Zt448143356 avatar Aug 26 '21 13:08 Zt448143356

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

BlackFireAlex avatar Aug 29 '21 11:08 BlackFireAlex