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

TypeError: webpack-hot-client: entry Object values must be an Array. #80

Closed
mrchief opened this issue Jan 18, 2018 · 3 comments
Closed

Comments

@mrchief
Copy link

mrchief commented Jan 18, 2018

The latest uses this "webpack-hot-client": "^1.0.1" which is over 2 years old. It produces this error which is due to buggy code in 1.0.1

TypeError: webpack-hot-client: `entry` Object values must be an Array. Please check your webpack config.
        at validateEntry (D:\myapp\node_modules\webpack-hot-client\lib\util.js:138:19)
        at module.exports (D:\myapp\node_modules\webpack-hot-client\index.js:26:3)
        at fn (D:\myapp\node_modules\koa-webpack\index.js:74:18)

My entry object:

 entry: [
    'babel-polyfill', // Support promise for IE browser (for dev)
    'react-hot-loader/patch',
    'webpack-hot-middleware/client?reload=true',
    './src/client.js'
  ]

In the latest webpack-hot-client, this check has been fixed.

@mrchief
Copy link
Author

mrchief commented Jan 18, 2018

The same code was working fine with koa-webpack: ^1.0.0

@mrchief mrchief changed the title Update webpack-hot-client to latest version TypeError: webpack-hot-client: entry Object values must be an Array. Jan 18, 2018
@mrchief
Copy link
Author

mrchief commented Jan 18, 2018

Sorry, I messed up. This is an issue for webpack-hot-client it seems.

@mrchief mrchief closed this as completed Jan 18, 2018
@mrchief
Copy link
Author

mrchief commented Jan 18, 2018

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

1 participant