News for hackers. Stuff that matters.
Re:Show HN: Tenno – Markdown and JavaScript = an Hybrid of W... by pzmarzly on Thursday October 10, 2024 @10:30AM (#41799215)
I opened the docs page, tried editing one of the examples, the page immediately crashed. You may be interested in setting up some error boundaries between your components.

  Unexpected Application Error!
  Cannot read properties of null (reading 'alternate')
  TypeError: Cannot read properties of null (reading 'alternate')
    at Uh (https://tenno.app/assets/index-y2OkIpP6.js:38:18238)
Re:Show HN: Tenno – Markdown and JavaScript = an Hybrid of W... by deepmacro on Thursday October 10, 2024 @10:35AM (#41799263)
Right, I did not put a lot of checks in place for such failures. Does it keep happen if you refresh? I've never seen it TBH https://tenno.app/docs
Re:Show HN: Tenno – Markdown and JavaScript = an Hybrid of W... by pzmarzly on Thursday October 10, 2024 @11:31AM (#41799899)
Yup, still happens. The easiest way to reproduce it to change a title of one of the charts to `title=""` (make sure to type it, not copy-paste). I'm using Safari for macOS if this makes a difference.

  Unexpected Application Error!
  Unexpected EOF
    eval@[native code]
    parseChartCommand@https://tenno.app/assets/index-y2OkIpP6.js:114:333
Re:Show HN: Tenno – Markdown and JavaScript = an Hybrid of W... by deepmacro on Thursday October 10, 2024 @11:42AM (#41800029)
Ah, yes, I just fixed that. While you edit, if the code is not valid now it will prevent from crashing the whole thing (band-aid fix).