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
- Fix socket connection for non-inlined connections — committed to webpack/webpack-dev-server by SpaceK33z 9 years ago
👍
+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
@sokra can you have a quick look at this? there are already two issues and three PRs open for this problem. https://github.com/webpack/webpack-dev-server/issues/381 https://github.com/webpack/webpack-dev-server/pull/300 https://github.com/webpack/webpack-dev-server/pull/394 https://github.com/webpack/webpack-dev-server/pull/396 https://github.com/webpack/webpack-dev-server/pull/447
+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.