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

Failed to emit declaration files when publishing component #120

Open
vincentbel opened this issue Mar 8, 2021 · 0 comments
Open

Failed to emit declaration files when publishing component #120

vincentbel opened this issue Mar 8, 2021 · 0 comments

Comments

@vincentbel
Copy link

对于 component 类型的项目,运行 npm run publish 之后,发布的内容中缺少了类型声明文件。

实际应该是在用 tsc 生成类型声明文件时出错了,直接运行 tsc 生成类型声明文件会报如下错误:

image

所以应该是在 tsconfig.json 里增加了 noEmit 配置导致的。(noEmit 是在这个 PR 里加上的:https://github.com/prijs/pri/pull/113/files#diff-5f12f27f3a5e43507dad6a0936033645ff2f210af80bb3e5445d51b593238a41

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

1 participant