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

Better error message when run fix on file not included in tsconfig.json #1221

Open
egorio opened this issue Aug 4, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@egorio
Copy link
Contributor

egorio commented Aug 4, 2023

Currently when user is trying to run rehearsal fix file.ts, but file is not a part of app according to tsconfig.json the error message will be:

$ ~/rehearsal fix src/file.ts
info:    @rehearsal/fix 1.1.1
✔ Initialize
✔ Analyzing project dependency graph ...
✖ Could not find source file: '......../src/file.ts'.

which is confusing, because file is there.

We have to show more actionable error, like: Complier can't find a file. Please check path to file included in tsconfig.json (or make sure path to file is a part of paths, etc.)

@egorio egorio added the enhancement New feature or request label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant