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

FR: more informative error messages #443

Closed
Akaprog opened this issue Jan 10, 2024 · 1 comment
Closed

FR: more informative error messages #443

Akaprog opened this issue Jan 10, 2024 · 1 comment
Labels
feature request Feature request

Comments

@Akaprog
Copy link

Akaprog commented Jan 10, 2024

Situation

npx knip
Analyzing workspace ....
Error loading app/cypress.config.ts
Reason: Invalid or unexpected token

with debug it showed exactly the right file (in my case, it was broken installation of bluebird as cypress dependency, with one file replaced with a png image)

Proposal
I wish if knip returned cause part (or full loader error) for such cases, something like this

LoaderError: 
[cause]: /app/node_modules/bluebird/js/release/finally.js:1
  �PNG
@Akaprog Akaprog added the feature request Feature request label Jan 10, 2024
@webpro
Copy link
Collaborator

webpro commented Mar 21, 2024

Is this still an issue? Feel free to re-open if necessary :)

@webpro webpro closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants