sonntam / node-red-contrib-xstate-machine

A xstate-based state machine implementation using state-machine-cat visualization for node red.
MIT License
22 stars 8 forks source link

Can't run smxstate #5

Closed Onixarts closed 4 years ago

Onixarts commented 4 years ago

Hi, I've just installed the node fromNR palette manager, and it shows errors after the installation:

27 Aug 20:16:11 - [info] Installed module: node-red-contrib-xstate-machine
27 Aug 20:16:11 - [info] Added node types:
27 Aug 20:16:11 - [info]  - node-red-contrib-xstate-machine:smxstate : SyntaxError: Unexpected token {

When I add a node to the flow and restart flows it stops with notification below:

27 Aug 20:16:26 - [info] Waiting for missing types to be registered:
27 Aug 20:16:26 - [info]  - smxstate

Any suggestions? Maybe nodejs v 8.11.3 is to old?

Onixarts commented 4 years ago

Yes. It works fine in nodejs 12.