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.

`undefined` css code blocks in /source

See original GitHub issue

If a brew doesn’t have any css added via the editor panel, the brew when viewed via /source will have a css code-block prepended that looks like this:

```css
undefined
```

That’s a bug, easy to fix.

Also appears in the /download resource.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Gazook89commented, Nov 21, 2021

So #1850 does this:

  1. If style tab isn’t touched from “new”, the example styling doesn’t appear, and no code fence block.
  2. If it’s changed, the change appears
  3. If it’s changed, but entirely deleted, it shows the code fence block but is empty:
```css

```
0reactions
ericscheidcommented, Nov 24, 2021

@calculuschild testing just now and I concur. It must have been an old brew I was looking at. What we can do is make sure we don’t consume the string “undefined” from an old brew and stick that into the style editor.

Ah, found these two in my downloads folder:

https://homebrewery.naturalcrit.com/share/HJ-xEkR-77 https://homebrewery.naturalcrit.com/share/1Xy5P5f_d4aYQ8mSSTATBQtKuOLqI8Qs7N7hF0h2ml8Gf

Since this is a minor glitch of bad data that won’t cause any problems, we can safely ignore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot set property 'display' of undefined - Stack Overflow
In this code we add multiple styles in an element: let element = document.querySelector('span') , cssStyle = (el, styles) => { for (var...
Read more >
Issues · rajinwonderland/react-code-blocks - GitHub
React code blocks and code snippet components. Contribute to rajinwonderland/react-code-blocks development by creating an account on GitHub.
Read more >
Functions — reusable blocks of code - Learn web development
In this article we'll explore fundamental concepts behind functions such as basic syntax, how to invoke and define them, scope, and parameters.
Read more >
How to Build a Code Block Web Component
Build a code block web component that can be used on any page, is compatible with different frameworks and can be used by...
Read more >
codeblocks undefined reference - Mingo Aerospace
I get an undefined reference when using a function from another source file, despite having a prototype included from a header file. I...
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