riot-js

Open full view…

Electron + RiotJS

miloszgray
Mon, 06 Aug 2018 11:18:29 GMT

I have an issue with riot when using it with Electron. I'm using - Riot 3.11.1, - Electron 2.0.6. When I type: const riot = import('riot') I get an error stating: riot is not defined. It leads to line: _brackets.settings = typeof riot !== 'undefined' && riot.settings || {}; Changing the line to _brackets.settings = {}; allows me to use RiotJs without any problems. For sure the riot variable is not defined before this line anywhere in the code. Does anyone have the same issue? Maybe I'm doing something wrong.