webpack-dev-server: Getting errors on client build.

Updated to webpack

├── webpack@1.12.11
├── webpack-core@0.6.8
├── webpack-dev-middleware@1.4.0
├── webpack-dev-server@1.14.1

I am seeing an error:

Uncaught TypeError: Cannot read property 'replace' of null

in line 5 of webpack-dev-server/client/index.js :

var scriptHost = scriptElements[scriptElements.length-1].getAttribute("src").replace(/\/[^\/]+$/, "");

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 8
  • Comments: 22 (1 by maintainers)

Commits related to this issue

Most upvoted comments

+1 rolledback to @1.14.0 fixed the problem.

+1 hi all.

+1 This issue was introduced with webpack-dev-server@1.14.1. When I rollback to webpack-dev-server@1.14.0, everything is fine again

+1

+1

+1

+1

+1 me too. 1.14.0 works.

+1. thanks for the tip, rolling back to 1.14.0 works for me too

also getting this error on client when adding an inline-script-tag

+1 rolled back to @1.14.0 fixed the problem.