Skip to content
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

在类型生成的时候,有些情况没有生成 index.vue.d.ts #113

Closed
roy-kang opened this issue Sep 16, 2022 · 5 comments
Closed

在类型生成的时候,有些情况没有生成 index.vue.d.ts #113

roy-kang opened this issue Sep 16, 2022 · 5 comments

Comments

@roy-kang
Copy link

这个地方有点奇怪,有些组件有 index.vue.d.ts,有些又没有,找了一圈没有找到原因

这种就有
image

这种没有
image

index.d.ts,都是下面的这种格式

import type { App } from 'vue';
import EpSuspensionFrame from './src/index.vue';
export { EpSuspensionFrame };
declare const _default: {
    install(app: App): void;
};
export default _default;

而组件内部的写法就是正常的写法

@qmhc
Copy link
Owner

qmhc commented Sep 16, 2022

是否有试过这个 FAQ

@roy-kang
Copy link
Author

OK,明白了

@roy-kang roy-kang reopened this Sep 17, 2022
@roy-kang
Copy link
Author

还想请问下,下图这种错误怎么解决,有没有好的办法
image

@qmhc
Copy link
Owner

qmhc commented Sep 17, 2022

你使用的 vue 版本是多少?

同时你可以看看 #63

@roy-kang
Copy link
Author

我用的3.2.39的最新版,换回 3.2.26 确实可以了,现在还没法解决么?

@qmhc qmhc closed this as completed in 41eb53a Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants