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

knip generates undesired code near to console.log lines #612

Closed
carlos-duran opened this issue Apr 30, 2024 · 2 comments
Closed

knip generates undesired code near to console.log lines #612

carlos-duran opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@carlos-duran
Copy link

I've run npx knip --fix --allow-remove-files in a legacy next.js repo and I've got some undesired results:
Screenshot 2024-04-30 at 2 55 49 AM

I can see some added /* eslint-disable */ and rare code around console.log
Screenshot 2024-04-30 at 2 54 10 AM

And this is de undesired code that was appended in each file where the console.log issue happened.
Screenshot 2024-04-30 at 2 57 16 AM

@carlos-duran carlos-duran added the bug Something isn't working label Apr 30, 2024
@webpro
Copy link
Collaborator

webpro commented Apr 30, 2024

Oh my, that looks scary. Any chance you could set up some (minimal) reproduction I can then use to debug and fix this?

@webpro
Copy link
Collaborator

webpro commented May 27, 2024

Closing this due to inactivity.

@webpro webpro closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants