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

When using System.import with webpack 2 and web-dev-server #188

Closed
aight8 opened this issue May 19, 2016 · 3 comments
Closed

When using System.import with webpack 2 and web-dev-server #188

aight8 opened this issue May 19, 2016 · 3 comments

Comments

@aight8
Copy link

aight8 commented May 19, 2016

It happen when use webpack-dev-server with System.import in a bundle file and change a file. Then this error happens:

xxx/node_modules/extract-text-webpack-plugin/index.js:22
            if(c.initial) return;
                ^

TypeError: Cannot read property 'initial' of undefined
    at ExtractTextPlugin.<anonymous> (xxx/node_modules/extract-text-webpack-plugin/index.js:22:8)
    at Array.forEach (native)
    at ExtractTextPlugin.mergeNonInitialChunks (xxx/node_modules/extract-text-webpack-plugin/index.js:21:16)
    at ExtractTextPlugin.<anonymous> (xxx/node_modules/extract-text-webpack-plugin/index.js:275:12)
    at Array.forEach (native)
    at ExtractTextPlugin.<anonymous> (xxx/node_modules/extract-text-webpack-plugin/index.js:273:21)
    at xxx/node_modules/async/lib/async.js:52:16
    at Object.async.forEachOf.async.eachOf (xxx/node_modules/async/lib/async.js:236:30)

Output chunk.chunks:

Chunk {
  id: null,
  ids: null,
  debugId: 1013,
  name: 'text',
  modules: [],
  chunks: [ undefined ],
  parents: [],
  blocks: [],
  origins: [],
  files: [],
  rendered: false,
  entry: true,
  initial: true,
  index: 0,
  originalChunk:
...
@ghost
Copy link

ghost commented May 27, 2016

+1 on this...

@bebraw
Copy link
Contributor

bebraw commented May 6, 2017

This could use a little standalone example against import().

@bebraw
Copy link
Contributor

bebraw commented May 6, 2017

Based on the error I would say this is actually the same as #406. The code has changed to .isInitial().

Closing this as a result.

@bebraw bebraw closed this as completed May 6, 2017
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

4 participants