-
Notifications
You must be signed in to change notification settings - Fork 512
App breaks on subsequent webpack compilations when using loader #579
Comments
I have the same issue. In the resulting bundle after first recompile original module position in array of modules is replaced by some random stuff (in my case css-base.js from css-loader takes index 1 where isArray from lodash should be, but webpack require function for isArray keep trying to get it at index 1) which results in broken app. Disabling extract-text fixes it. This renders webpack's watch mode unusable. I also think it's related to #584. |
I'm experiencing the exact the same problem as fuwaneko. After the first build the module in position 1 is one For now I've worked around it by downgrading to |
@crdx I also experience same vue-loader problem sometimes. Broken isArray is one thing, some parts of app still work. But broken vue-loader prevents app from working at all. |
My team is also experiencing this problem and I can confirm that when I downgrade to |
Also experiencing this issue - downgrading to 2.1.2 resolves the problem |
Can anyone provide a minimum but complete repro case for this issue? I'm working on whittling mine down but it may take a while. |
@d3viant0ne Here's my minimal repro case. https://github.com/cletusw/extract-text-webpack-plugin-issue-579 It appears to be a complicated interaction between |
@evilebottnawi @d3viant0ne Can we remove the Also, any idea how long this will take before it can be addressed? Thanks. |
@cletusw sorry, no idea 😞 but you can investigate this and send PR 👍 |
In order to work around this issue, I:
I'm not sure if it'll hold up, but until this issue is resolved, this may unblock me from moving to Webpack 3. Thanks to @kevinzang for the idea. |
Awesome idea @jjinux That sorting issue was the one big issue I had with downgrading (plus the npm |
Sorry, @JayCanuck, I created a private fork in my company's GitHub team. Hopefully, my description above will allow you to do the same. |
Created a fork containing the workaround from jjinux if anyone needs it for now until it's fixed: |
Use a local fork of extract-text-webpack plugin with a webpack 3.x compatibility patch applied until webpack-contrib/extract-text-webpack-plugin#579 is fixed upstream.
@editedredx can you describe your fix or do PR (better)? |
Sorry @evilebottnawi, this is hardly a fix for this problem, just a workaround to make plugin version 2.1.2 work with webpack 3. I only applied the diff from jjinux. |
@editedredx can we fix this using your solution for |
@evilebottnawi No because this solution is not a fix for the problem only a downgrade to when the problem did not exist. |
Use a local fork of extract-text-webpack plugin with a webpack 3.x compatibility patch applied until webpack-contrib/extract-text-webpack-plugin#579 is fixed upstream.
I guess I faced the similar issue. I have configured hot reload with a plain css-loader configuration and looks like that subsequent update corrupts the modules graph, which results in loading wrong chunks by old ids. |
Webpack 3.6.0 appears to have fixed the issue for me. I think anyway (fingers crossed). |
Webpack 3.6.0 also fixes the problem for me 🎉 |
updating Webpack to the latest version also helped, which is Webpack 3.11.0 at the time of posting. |
I just migrated from webpack v1 to webpack v3 with not much issue. However, I'm running into a really annoying problem that seems to stem from extract-text-webpack-plugin when webpack-dev-server re-compiles after the initial compile.
Here's what's happening:
If I don't use extract-text-webpack-plugin during loading, the issue doesn't happen.
I've attached a GIF below to illustrate the issue. You can see that, on initial load, the Inferno object is correctly set with its required functions. On reload, it's not:
My webpack config:
Here are my dev depedencies:
The text was updated successfully, but these errors were encountered: