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

chunk.modules deprecated #494

Closed
yocontra opened this issue May 1, 2017 · 12 comments
Closed

chunk.modules deprecated #494

yocontra opened this issue May 1, 2017 · 12 comments

Comments

@yocontra
Copy link

yocontra commented May 1, 2017

Just a heads up, webpack master emits this warning for 2.1.0 -

(node:33863) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
    at /Users/contra/Projects/staeco/node_modules/extract-text-webpack-plugin/index.js:268:24

Source of the issue: https://github.com/webpack-contrib/extract-text-webpack-plugin/blob/master/index.js#L268

@zhuweiyou
Copy link

same warning

@iroy2000
Copy link

same warning here

94% asset optimization(node:35014) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead. Hash: 737f15654eb9035eafed Version: webpack 3.0.0

@alexander-akait
Copy link
Member

Guys don't duplicate issues, we known about this, we do fix and release this asap

@ReactGirl
Copy link

(node:1266) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

Why this happening?

@joshwiens
Copy link
Member

@reactphoenix it's an internal deprecation warning from Webpack to extract text. Nothing to worry about.

There is already an open pull request updating the methods in question

@michael-ciniawsky
Copy link
Member

Fixed in v3.0.0-rc.1

@iwarner
Copy link

iwarner commented Oct 22, 2017

Im still seeing this on verision 3.6.0
"webpack": "^3.6.0"

@Brian-Kaplan
Copy link

Brian-Kaplan commented Nov 3, 2017

Seeing this in webpack 3.8.1

@joshwiens
Copy link
Member

@Brian-Kaplan It's not from extract-text

I know webpack-md5-hash still has this deprecation warning & I know there are others as well.
Everything that webpack-contrib owns, has been updated. If you post your dev-deps, I can probably pick out the offending lib.

@bkumar-webfares
Copy link

DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.

Version: webpack 3.0.0-rc.1

Is there any solution?

@ywxgod
Copy link

ywxgod commented Dec 13, 2017

Seeing this in verision 3.10.0
"webpack": "^3.10.0",

@montogeek
Copy link

@ywxgod @mknet Which versions of this plugin are you using?

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