-
Notifications
You must be signed in to change notification settings - Fork 12.8k
When module not found, show output of --traceResolution
for that module
#15845
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
Comments
It is strange that you get a punch of trace messages with your errors.. i wounder if there is a way to just say trace resolutions for failed modules.. |
traceResolution: |
or |
This would be an extremely valuable and very much appreciated feature. |
For future lurkers - rather obvious - workaround: |
Not much feedback on this, and the module resolution trace is extremely verbose and not formatted for everyday usage. I'm honestly not sure it would even help, since if the module is present, the trace doesn't explain why it didn't look in the place you expected it to be found. |
TypeScript Version: latest
Code
Expected behavior:
Shows the attempts to resolve "unresolved-module".
Actual behavior:
Just says that the module wasn't resolved.
People can always turn on
--traceResolution
after getting such an error, but that shows the resolution for all modules, which can be pretty long.The text was updated successfully, but these errors were encountered: