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.

TypeError with v9.0.0

See original GitHub issue

I’m not able to successfully import the v9.0.0 version into a project like I was with v8.x.

Using CodeSandbox, here’s some example code with v8.1.1:

image

Here’s that same code with v9.0.0

image

When rendering in the browser, I’m consistently getting the error:

Cannot read property 'smcat.template.hbs' of undefined

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mwaddellcommented, Jul 27, 2021

It’s all based on PR #135 – we maintain our internal state in JSON objects and I wrote a map/reduce function that converts from our JSON format to yours and adds classes to all of the resulting objects. All the background and edge styling is implemented using regular CSS. The code which adds in the icons and adds onclick/onmouseover events just looks for items by className. We were originally using state-machine-cat to visualize existing workflows, but now we have a fully interactive editor for editing them as well. We use this as part of a larger application which tracks how well we adhere to our standard processes.

1reaction
sverweijcommented, Jul 27, 2021

Thanks for the confirmation @mwaddell state-machine-cat@9.0.1 - which includes the fix - has just been published.

(And nice to hear of a real-life use case!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'apps' of undefined firebase - Stack ...
javascript - Firebase Modular SDK V9. 0.0+ TypeError: Cannot read property 'apps' of undefined firebase - Stack Overflow. Collectives™ on Stack Overflow – ......
Read more >
Grafana v9.0.0-beta2: TypeError: Object(...) is not a function
Seems like having a Background Color configured crashes the dashboard/panel with the following error: TypeError: Object(.
Read more >
Node v9.0.0 (Current)
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >
Mocha documentation — DevDocs
Mocha 9.0.2 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more.
Read more >
Firebase JavaScript SDK Release Notes - Google
Fixed a bug that caused Uncaught TypeError: e.auth. ... Fixed an issue where the number value -0.0 would lose its sign when stored...
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