Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

[webpack 3.0.0] TypeError: chunk.isInitial is not a function #554

Closed
pedroabreu opened this issue Jun 26, 2017 · 8 comments
Closed

[webpack 3.0.0] TypeError: chunk.isInitial is not a function #554

pedroabreu opened this issue Jun 26, 2017 · 8 comments

Comments

@pedroabreu
Copy link

I've just updated to webpack 3.0.0 and I'm started getting this issue when running my tests.

26 06 2017 17:42:57.000:ERROR [karma]: TypeError: chunk.isInitial is not a function
    at isInitialOrHasNoParents (/node_modules/extract-text-webpack-plugin/dist/lib/helpers.js:15:16)
    at /node_modules/extract-text-webpack-plugin/dist/index.js:187:94
    at /node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:3083:16
    at eachOfArrayLike (/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:1003:9)
    at eachOf (/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:1051:5)
    at Object.eachLimit (/ocelot/node_modules/extract-text-webpack-plugin/node_modules/async/dist/async.js:3145:5)

Any idea on how to fix this ?

@lightsaway
Copy link

Have same problem

@joshwiens
Copy link
Member

joshwiens commented Jun 29, 2017

Fix should land this evening

@joshwiens
Copy link
Member

Pick up extract-text-webpack-plugin@3.0.0-rc.2

@tsfahmad
Copy link

Facing same problem with extract-text-webpack-plugin@3.0.0-rc.2

@pedroabreu
Copy link
Author

Updating karma-webpack worked for me (plus using the latest extract-text-webpack-plugin)

@jk171505
Copy link

jk171505 commented Aug 28, 2017

updating npm to the latest version worked for me

@tauseef-inbetween
Copy link

Passing latest webpack into the gulpWebpack function worked for me

@jk171505
Copy link

jk171505 commented Aug 28, 2017

updating memory-fs to the latest exposes this bug again. From that moment on nothing helps.
I tried to reinstall node, npm, nothing helped.
My current setup:
"ajv": "^5.2.2",
"css-loader": "^0.28.5",
"extract-text-webpack-plugin": "^3.0.0",
"handlebars": "^4.0.10",
"metalsmith": "^2.3.0",
"metalsmith-express": "^0.1.0",
"metalsmith-in-place": "^1.4.4",
"metalsmith-layouts": "^1.8.1",
"metalsmith-permalinks": "^0.5.0",
"metalsmith-swig": "^1.2.1",
"metalsmith-watch": "^1.0.3",
"metalsmith-webpack": "^1.0.3",
"node-sass": "^4.5.3",
"script-loader": "^0.7.0",
"style-loader": "^0.18.2",
"swig": "^1.4.2",
"webpack": "^3.5.5"

I tried it in:
node versions: 6.11.2, 7.4.0, 8.4.0
npm: 5.3.0

Still:
TypeError: chunk.isInitial is not a function
at isInitialOrHasNoParents (/Users/janusz/Sites/androidworks/Red7eKentuckyOwl/kentucky-owl/node_modules/extract-text-webpack-plugin/dist/lib/helpers.js:15:16)

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

No branches or pull requests

6 participants