Skip to content
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

ISSUE 947 - plugins defined with webpack 3 _modules Set in a develope… #956

Conversation

alechill
Copy link

@alechill alechill commented Jun 22, 2017

Plugins defined with webpack 3 Chunk._modules Set in a developer's parent project explode when run via webpack-dev-server, as dev-server actually starts and runs a webpack instance via its own dependency, which is currently 2.x . Bumping dependency to 3.x fixes this compatibility issue, and should be backwards compatible as the old modules array is deprecated gracefully.

What kind of change does this PR introduce?
Bug fix #947

Did you add or update the examples/?
N/A

Summary
Fixes #947

An upgrade to webpack 3 in own project broke webpack-dev-server controlled builds, breaking our workflow

CommonsChunkPlugin.js:289
for(const module of chunk.modulesIterable) {
^
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined

Does this PR introduce a breaking change?
Potentially due to peer dependency being bumped to a major version of webpack, may require its own major version altering to suit. Will let maintainers be the judge of that

Other information

…r's parent project explode when run via webpack-dev-server, as dev-server actually starts and runs a webpack instance via its own dependency, which is currently 2.x . Bumping dependency to 3.x fixes this forwards compatibiity issue, and should be backwards compatible as the old modules array is deprecated gracefully.
@jsf-clabot
Copy link

jsf-clabot commented Jun 22, 2017

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jun 22, 2017

Codecov Report

Merging #956 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #956   +/-   ##
=======================================
  Coverage   72.13%   72.13%           
=======================================
  Files           4        4           
  Lines         463      463           
  Branches      139      139           
=======================================
  Hits          334      334           
  Misses        129      129

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbcdca7...69098ee. Read the comment docs.

@lencioni
Copy link
Contributor

Duplicate of #946

@shellscape
Copy link
Contributor

indeed. resolved in 8978059

@shellscape shellscape closed this Jul 10, 2017
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

Successfully merging this pull request may close these issues.

Webpack 3 CommonsChunkPlugin.js:289 Cannot read property 'Symbol(Symbol.iterator)' of undefined
4 participants