-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS类型问题 #24
Comments
兄弟,你的预期是什么 |
不要报错, |
可以啊,找到�源码,修改一下,提个pr。我合了就发版本。 |
抱歉,TS我也不熟,第一个问题,我也不知道什么原因,不知道怎么改, |
初步确认, import EventEmitter from '@/utils/event-emitter' 改成 import EventEmitter from './event-emitter' 可以解决, |
好的,感谢你提供的信息,这边会安排处理一下的。 |
这是路径别名,在 tsconfig 里配的。请问你是否是直接在项目代码里尝试引用 node_modules/@femessage/v-gantt 中的类型定义呢? |
@donaldshen @devsvc 其实是 .d.ts 用到了 v-gantt 内部的类型定义,如果在项目中要用 v-gantt 的向外部暴露类型,就会调用到。 看:https://github.com/FEMessage/v-gantt/blob/dev/src/index.d.ts#L10 |
确实应该是这样 // src/utils/types.ts
- import EventEmitter from '@/utils/event-emitter'
+ import EventEmitter from './utils/event-emitter' |
The text was updated successfully, but these errors were encountered: