-
-
Notifications
You must be signed in to change notification settings - Fork 26.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
Better "module not found" message #401
Comments
If you plan to work on this please leave a comment. We don’t want many people to work on the same thing at the same time. A good place to start looking at would be cc @geowarin who also was looking into improvements to webpack output in geowarin/tarec#16. |
@gaearon I would love to work on this one 😄 |
Hi @gaearon. If you change this line to This is a short term measure before somebody actually dives into webpack internals to do exactly what you suggested. |
Thanks to @geowarin for the tip in #401 (comment)
this would be a great change not just for this specific project but in general (at least as an option) |
Seems that @geowarin already has a PR 👍, he also has more domain knowledge than me! |
I created the friendly-errors-webpack-plugin. It still needs more work (see the TODO in the README) but I'd love to see your feedback/ PR. 😄 |
@geowarin Awesome, given that you created friendly-errors-webpack-plugin I thought that it would make more sense me to PR that repo instead of this one. geowarin/friendly-errors-webpack-plugin#1 |
@geowarin is there an update on this? I'm more than happy to pick it up or help out with anything :) |
Thanks to @geowarin for the tip in #401 (comment)
What if instead of
missing packages would bring out a prompt to install them for you?
|
Update: there is a PR implementing this. @fson It would be great to provide autofixes! The only part I'm not sure about is how to allow simple interactions with the console since it is cleared every now and then. |
I’m a bit worried about autofixes because it’s easier to miss typos and install something you didn’t want. I’d like installation act to be explicit. |
Thanks to @geowarin for the tip in facebook#401 (comment)
@gaearon As per Heroku's Node.js best practices we could mitigate the issue by providing This is what we use:
|
@mareksuscak Thanks for the tip, didn't know about this setting before. However, I think it could increase the confusion in some cases, because we would basically be creating a hidden file that makes npm behave differently from the default. People might not notice it or understand what it does, only npm would seem to behave differently from time to time. That's why I think a simple message showing how to use This project also aims to avoid adding configuration and flags as much as possible, so generating a |
Thanks to @geowarin for the tip in facebook#401 (comment)
I think this was fixed. |
increased support for common image formats
This is what I see when I forget to install some npm dependencies:
This is overwhelming and unnecessary.
We should have simple messages, like:
I’m not sure what to do with local file missing errors (i.e. when you import a non-existing file in
src
). We should probably group them separately but also in a less intimidating way.I don’t personally plan to work on this so any help is welcome!
The text was updated successfully, but these errors were encountered: