yonatan
yonatan

Reputation: 615

Uncaught ReferenceError: __webpack_dev_server_client__ is not defined

running our build artifact from S3 through CloudFront we get Uncaught ReferenceError: __webpack_dev_server_client__ is not defined, the error does not reproduce locally.
We build our script in CodeBuild.
The CodeBuild image is aws/codebuild/nodejs:10.14.1-1.7.0.

Upvotes: 0

Views: 732

Answers (1)

Aris Gatoudis
Aris Gatoudis

Reputation: 103

Until they push a fix, you can install an older version:

npm uninstall webpack-dev-server --save-dev

npm install [email protected] --save-dev

Solution found here https://github.com/webpack/webpack-dev-server/issues/2006#issuecomment-500419258

Upvotes: 2

Related Questions