question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS editing in Chrome caused layout trash

See original GitHub issue

hey ya’ll

on develop b4700eb36af95ca0f5b1b0b205160bb26f6b076b

wondering if you guys have experienced any of the following issues

  • source mappings not working
  • when editing css in the browser - all css breaks and you have to refresh electron

might have something to do with this:

[8032:0622/095513.166795:ERROR:CONSOLE(906)] "TypeError: Cannot read property 'count' of undefined TypeError: Cannot read property 'count' of undefined
              at Function.removeFrameAttribution (chrome-devtools://devtools/bundled/inspector.js:6632:284)
              at Bindings.SASSSourceMapping._sourceMapDetached (chrome-devtools://devtools/bundled/inspector.js:6200:308)
              at SDK.SourceMapManager.dispatchEventToListeners (chrome-devtools://devtools/bundled/inspector.js:472:23)
              at SDK.SourceMapManager.detachSourceMap (chrome-devtools://devtools/bundled/inspector.js:5332:48)
              at SDK.CSSModel._resetStyleSheets (chrome-devtools://devtools/bundled/inspector.js:3719:200)
              at SDK.ResourceTreeModel.dispatchEventToListeners (chrome-devtools://devtools/bundled/inspector.js:472:23)
              at SDK.ResourceTreeModel._frameNavigated (chrome-devtools://devtools/bundled/inspector.js:5136:6)
              at SDK.PageDispatcher.frameNavigated (chrome-devtools://devtools/bundled/inspector.js:5228:47)
              at Protocol.InspectorBackend._DispatcherPrototype.dispatch (chrome-devtools://devtools/bundled/inspector.js:3195:26)
              at SDK.Target._onMessage (chrome-devtools://devtools/bundled/inspector.js:3149:31)", source: chrome-devtools://devtools/bundled/inspector.js (906)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
fabowebcommented, Jun 22, 2018

I think those are two different topics, but I have experienced both as well. 😦

0reactions
fabowebcommented, Jul 4, 2018

So the error is, that media queries get stripped after an edit.

A dirty fix seems to be adding another css rule at the bottom of the style tag of a component not being a media query.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Chrome Dev Tools inspect element styles not showing
I just close the tab, and reopen it, and then right click > inspect element. Don't need to restore the whole dev tools...
Read more >
Why is Chrome not applying the updated CSS to my website?
Anything that is considered non-volatile (meaning that it's not expected to change often) is cached. This means images, JavaScript, and CSS.
Read more >
Chrome Update 83 CSS Garbage! - Google Support
This changes any and I mean ANY custom developed websites. As a developer, we need browsers to render in what the SERVER is...
Read more >
Fix memory problems - Chrome Developers
This is possibly a symptom of frequent garbage collections. Garbage collection is when the browser reclaims memory. The browser decides when ...
Read more >
Fixing Google Chrome compatibility bugs in websites - FAQ
The problem: HTML & CSS can't do pixel perfect layout. So font and element sizes can change slightly between browser versions and OSs....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found