Skip to content

chunk is not an instance of Chunk #54

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

Closed
adascal opened this issue Dec 13, 2017 · 8 comments
Closed

chunk is not an instance of Chunk #54

adascal opened this issue Dec 13, 2017 · 8 comments

Comments

@adascal
Copy link

adascal commented Dec 13, 2017

I have a very tricky webpack config (extended version from create-react-app) and then I tried to replace extract-text-webpack-plugin with extract-css-chunks-webpack-plugin I got a nice error chunk is not an instance of Chunk

@faceyspacey can you give more information about isChunk function? I see it only in 2 places is used and not totally clear why.
https://github.com/faceyspacey/extract-css-chunks-webpack-plugin/blob/master/index.js#L357

And maybe it's possible to remove it? Cause even my "freaky" config working fine without it.

@faceyspacey
Copy link
Owner

probably can't remove it. Perhaps you're on an older version of webpack. This is meant for webpack 3+

@gbakernet
Copy link

I had this issue on webpack 3.5.5 but not on webpack 3.10.0

@hamzamihaidanielx
Copy link

This must be wrong, i have latest versions of both webpack and this plugin and there is still this error? What am i doing wrong here? How so for others work and for some don't?

@mike1808
Copy link
Contributor

I have the same error if I'm using globally installed webpack, if the webpack is locally installed and it's located in the project node_modules everything is OK

@hamzamihaidanielx
Copy link

@mike1808 actually my webpack is local installed, so thats why. Any other ideea why? I added babel universal plugin aswell to the .babelrc file...

@faceyspacey
Copy link
Owner

I opened up a discussion on the PR that introduced this code here:

#29

Please post any information there.

@manjula-dube
Copy link

manjula-dube commented Jan 24, 2018

I am also facing the same issue webpack version is 3.8.1 & extract-css-chunks-webpack-plugin version 2.0.18

@faceyspacey
Copy link
Owner

This PR: #67 which was just merged fixes this. Please let me know if anyone is still having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants