Skip to content

extract-text-plugin still not working #332

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
jlefebvre1997 opened this issue Jun 5, 2018 · 2 comments
Closed

extract-text-plugin still not working #332

jlefebvre1997 opened this issue Jun 5, 2018 · 2 comments

Comments

@jlefebvre1997
Copy link

Hi guys, I had this issue with extract-text-plugin after upgrading to weback 4 :

Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
    at Chunk.get (/var/www/html/node_modules/webpack/lib/Chunk.js:741:9)
    at /var/www/html/node_modules/@symfony/webpack-encore/node_modules/extract-text-webpack-plugin/dist/index.js:176:48
    at Array.forEach (<anonymous>)
    at /var/www/html/node_modules/@symfony/webpack-encore/node_modules/extract-text-webpack-plugin/dist/index.js:171:18
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/var/www/html/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:7:1)
    at AsyncSeriesHook.lazyCompileHook [as _callAsync] (/var/www/html/node_modules/webpack/node_modules/tapable/lib/Hook.js:35:21)
    at Compilation.seal (/var/www/html/node_modules/webpack/lib/Compilation.js:904:27)
    at hooks.make.callAsync.err (/var/www/html/node_modules/webpack/lib/Compiler.js:494:17)
    at _err0 (eval at create (/var/www/html/node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:11:1)
    at _addModuleChain (/var/www/html/node_modules/webpack/lib/Compilation.js:770:12)
    at processModuleDependencies.err (/var/www/html/node_modules/webpack/lib/Compilation.js:709:9)
    at process._tickCallback (internal/process/next_tick.js:176:11)

As seen everywhere, I tried to fix this by running npm i -D extract-text-webpack-plugin@next, but this is not working. I think this is because the error is happening inside webpack encore's own node_modules...

Any ida ?

@stof
Copy link
Member

stof commented Jun 5, 2018

Webpack Encore requires webpack 3 currently. Support for webpack 4 is a WIP in #324

@aphex008
Copy link

aphex008 commented Sep 4, 2018

Same here. Installed webpack 4 and tried to run

yarn encore dev

Got same error you mentioned.
Removing webpack 4 dependency and reinstalling node modules helped.

Now my dev dependencies look like this and everything works fine.

"devDependencies": {
    "@symfony/webpack-encore": "^0.20.1",
    "gulp": "^3.9.1",
    "gulp-sass": "^4.0.1",
    "gulp-sourcemaps": "^2.6.4",
    "node-sass": "^4.9.3",
    "sass-loader": "^7.1.0",
    "webpack-cli": "^3.1.0"
  },

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

4 participants