-
Notifications
You must be signed in to change notification settings - Fork 85
Align with webpack api. #29
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
Conversation
fantastic!!! Perfect timing. Bout to release something big, and the warning is just cheap. I'll be merging it soon. |
Excellent job! |
I'll publish it soon. In the future use the |
@faceyspacey Will do. |
@faceyspacey I'm not sure, if I'll have to guess, it's probably a webpack change of somesort. Are there any reproducible examples? |
Hey ppl,
Say, I suspect that it happens because under the hood |
@faceyspacey Do you have any pointers to guide me where to look for @birdofpreyru's claims? |
@eladchen @faceyspacey |
Actually, hold on with this as well, my PR does not properly catch errors in building of sub-modules, I gonna update it later today. |
@eladchen @faceyspacey I believe, this is it: #58 P.S.: Nope, appears it still does not capture all possible errors that may take place during Webpack build :( I guess, I'll surrender here, and will just use |
@eladchen honestly, I know very little, except lots of people have been having this problem as of late in the 2 linked issues. I pointed them to this PR to discuss--let's just wait until someone actually having the problem has a repro and/or more info. @birdofpreyru thanks for working on this. it sounds like ur going down the right path. Extra reporting can't hurt. I'll merge your PR if and when you think it should be merged. |
@faceyspacey yeah, I am pretty sure that the problem is that something outside you plugin crushes during the build, so Webpack does not produce proper Chunk objects; and the only reason why people complain about your plugin is that it checks that those chunks are not real Chunks, and throws an obscure error right away, before Webpack has a chance to correctly report the problem. And my PR, although it somewhat improves the reporting, it does not catch all possible errors: while playing with this yesterday I managed to come into situation when chunks do not contain error messages where I look for them, but they are still not valid chunks, thus the obscure message is thrown again. I don't know the details, but I believe, Webpack should have some custom system for error messaging: if user did not opted out for |
|
|
Hey doesn't still fix the problem and I still get the same error of chunk is not instance of Chunk |
@manjula91 yeap, it does not fix it, it just tries to better report the actual cause of the crush. @faceyspacey I found another problem with that When I install 'LIB
and the compilation works smoothly. Now, I want to
and in this case, the compilation fails because of the incorrect In this very case, if I just remove the check, the compilation goes smoothly till the end. Not sure, what is the best way to fix it properly. Probably, instead of |
what @birdofpreyru mentioned is true, instead of |
This change will remove the annoying deprecation message below, and will be backwards compatible.
P.S I noticed the tests are failing so I couldn't rely on them.