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

Created on 11 Jan 2016  ·  22Comments  ·  Source: webpack/webpack-dev-server

Updated to webpack

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]

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(/\/[^\/]+$/, "");
bug

Most helpful comment

+1 This issue was introduced with [email protected]. When I rollback to [email protected], everything is fine again

All 22 comments

+1 This issue was introduced with [email protected]. When I rollback to [email protected], everything is fine again

+1
Guys, you can search the script element by id or something. No guarantee the last one is yours.

+1, rollback to @1.14.0 is fine for me,

:+1:

The same error after update to 1.4.1

+1 rolledback to @1.14.0 fixed the problem.

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

+1 rolled back to @1.14.0 fixed the problem.

+1 hi all.

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

:+1:

+1 me too. 1.14.0 works.

+1, same issue as this and #381. Why is this unresolved for so long?

+1

+1

+1

+1

+1

+1

+1

For those who want to make the leap to Webpack 2.0 beta, this issue appears to be fixed in webpack-dev-server 2.1.0-beta.0

Dupe of #117.

Was this page helpful?
0 / 5 - 0 ratings