live-server icon indicating copy to clipboard operation
live-server copied to clipboard

Chrome does not update CSS edit

Open dreadsoul opened this issue 5 years ago • 4 comments

Chrome does not update CSS edit

The changes in .html are registered and updated. But i am having problems with .css file. The changes in .css file are registered but not updated in Chrome. Can anyone help me please.

Note: with Firefox i do not have this problem.

Here is error from DevTool: Console: (index):53 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. at refreshCSS (http://127.0.0.1:8080/:53:11) at WebSocket.socket.onmessage (http://127.0.0.1:8080/:67:40) refreshCSS @ (index):53 socket.onmessage @ (index):67

more details:

`Code injected by live-server

`

dreadsoul avatar Jul 15 '18 00:07 dreadsoul

Same problem here. Seems to work fine in Safari.

murbar avatar Jan 10 '19 16:01 murbar

This has been fixed here https://github.com/tapio/live-server/pull/283/commits/db9f12ddecbd5887e0110fff3d5820069a274c20 , but I do not know why it is not part of the master build.

To install this particular fix, do the following:

npm install -g "git+https://github.com/tapio/live-server.git#db9f12ddecbd5887e0110fff3d5820069a274c20"

blessochampion avatar Feb 13 '19 09:02 blessochampion

I face the same problem on Chrome Version 75.0.3770.142 (Official Build) (64-bit) The pull request of this https://github.com/tapio/live-server/commit/db9f12ddecbd5887e0110fff3d5820069a274c20 is still open: https://github.com/tapio/live-server/pull/283

It seems that the CI pipeline failed.

Alternatively, you can use: live-server --no-css-inject

CharidimosTzedakis avatar Jul 24 '19 17:07 CharidimosTzedakis

I face the same problem on Chrome Version 75.0.3770.142 (Official Build) (64-bit) The pull request of this db9f12d is still open: #283

It seems that the CI pipeline failed.

Alternatively, you can use: live-server --no-css-inject

Using the --no-css-inject flag still does not work for me.

My node version is v12.8.0

FrancescoMagliocco avatar Aug 11 '19 22:08 FrancescoMagliocco