-
Notifications
You must be signed in to change notification settings - Fork 370
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
[Bug]: bundleless DTS failed:No inputs were found in config file #4655
Comments
好象是在生成 |
对的,Modern.js Module 会在 node_modules 下面生成一个临时的 tsconfig 文件,并注入一些默认配置(tsup 应该没有这个行为,所以不会有问题) 你需要在根目录的 tsconfig.json 里配置 "include",否则 tsc 编译的时候会无法识别源代码: {
"include": ["src"],
} |
@10Derozan 如果用户没有指定 include,我们可以考虑默认注入一个 |
之前版本是没问题,直到某次更新后才出现这个问题的,算兼容性问题吧? 编译是可以的,只是无法生成 建议默认注入一个 |
嗯,我们会再跟进一下这个问题 |
这个问题在 2.40.0还没有解决
|
加在项目模板里了 |
现在我们不再会开辟新的 temp 目录跑 tsc了,现在会完全遵循用户 tsconfig,这个错误将不再出现。 |
👍 |
Version
System: Windows @modern-js/module-tools : 2.35.0
Details
使用
@modern-js/module-tools
构建时出错同样的配置使用
tsup
构建成功错误信息发下:
Reproduce link
https://github.com/zhangfisher/flex-tools
Reproduce Steps
The text was updated successfully, but these errors were encountered: