-
Notifications
You must be signed in to change notification settings - Fork 71
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
Error: Could not find file
when extraneous TS files in project and declaration: true
#95
Comments
Repo to reproduce here: https://github.com/amacleay/repro-rollup-plugin-ts2-declaration-issue (it's almost identically what is posted above) |
Seems like this hits any file that isn't included by the import hierarchy. My test code, demos, and an unused file hit this. I worked around it for now by adding a few excludes to the rollup config for the things I wanted to skip. |
Looks like the fix for virtual modules (#78 (comment)) broke the hack for declarations missing because they are invisible to rollup... |
Should be fixed now, try it in master. I'll do a release soonish. |
Confirmed the fix, thanks! |
Could not find file
when extraneous TS files in project and declaration: true
What happens and why it is wrong
In a project using rollup-plugin-typescript2.
Compiling results in
Rolling back ffe3b6c fixes this error.
Environment
The following is the set of all files from a reproduction repo:
$ for f in $(git ls-files); do echo -e "\n// $f"; cat $f; done
Versions
rollup.config.js
tsconfig.json
package.json
the rest of the code
plugin output with verbosity 3
The text was updated successfully, but these errors were encountered: