-
Notifications
You must be signed in to change notification settings - Fork 85
Doesn't work when extracting webpack-config into npm module #53
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
Comments
Forked and patched. I'm 100% sure this is not a wise way to do it but it does the trick in my case: https://github.com/chapati23/extract-css-chunks-webpack-plugin/blob/master/index.js#L473-L502 Basically just outcommented the two |
Hmm. Maybe add that jsesc package to your config npm package would solve it. It's used by extract css chunks. Not sure how it goes missing. |
@chapati23 Do you have I just ran into this error where I have a parent app and a nested client app. Both the parent and nested client app had It seems whenever there is an instance of The odd thing is that when inspecting the So in my case it seems that using different instances of the |
@nicmitchell that would make a ton of sense, but unfortunately i'm still getting this error when i only add i feel the problem might be related to that this plugin is webpack plugin and loader in one package. because my loaders i typically have to include as dependencies in the actual frontend app while the plugins can be included as dependencies of the webpack-config itself |
@faceyspacey could you elaborate on why this instance-check is necessary? |
I'm pretty sure it was added in a recent PR by someone to circumvent issues with different versions of webpack. ...Here's the PR: |
Someone else reported this not being an issue in webpack 3.10: |
will re-check on the weekend, thanks |
you're right, latest webpack seems to have fixed it :) |
This has not been FIXED. I have both latest versions of webpack and this plugin and still does not work. Same error with "chunk is not an instance of Chunk". Why? |
I opened up a discussion on the PR that introduced this: please post any information you might have there. |
"webpack": "3.10.0" also breaks |
Just tried it & "webpack": "3.10.0" also breaks |
Description
I just extracted my webpack-config into a separate npm module to reduce the boilerplate in my frontend app ecosystem.
extract-css-chunks-webpack-plugin
is causing some issues for me here.Versions
Setup
My app is based on the
redux-first-router-demo
. I'm basically just extracting the webpack config into its own npm package so i can re-use it across multiple frontend apps.Errors
The first error is the instantiation of
new ExtractCssChunks()
which throws:If i move the instantiation back into the original repo, then the loader throws:
======================
Any idea what could be going wrong here? My setup is based on your
redux-first-router-demo
and all other webpack plugins and loaders are working fine.The text was updated successfully, but these errors were encountered: