-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Unused import from external module prints massive indecipherable warning message #17517
Comments
Sigh. I guess I partially have myself to blame for this one: rollup/rollup#4194. Lol To be fair, putting a huge list of files where you have to guess which one contains the error is slightly better than the old version, which told you nothing. And I was just using the information available where the real issue is the warning being generated without the relevant info |
I've seen this happen more often since a couple months ago, but I'm not sure it's related to Vite either. Perhaps it should be reported to Rollup instead? Maybe also worth testing downgrading Rollup versions. |
I was going to close this and file an issue with Rollup, but I can't reproduce it with Rollup alone: https://stackblitz.com/edit/rollup-repro-imroal I'm guessing that there's something in Vite's TypeScript transformation that is triggering this or something along those lines |
Describe the bug
I've gotten this error message from
vite
, but don't know how to fix it. It's a pretty bizarre error message because it just tells me a bunch of files where the classes aren't used. But where are the offending classes actually imported?Reproduction
https://github.com/benmccann/vite-warning-bug
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: