Hi,
yesterday I upgraded from version 5.01 to the milestone build, thank you for your work!! Unfortunately, none of my text-based JavaScript rules work anymore — the keyword “rules” is now reported as unknown.
I’m aware of the new option “Auto injection for all scripts, including file-based,” which was enabled by default. However, I noticed that adding the line
const { rules, triggers, items } = require(‘openhab’);
at the beginning of a JS file makes it work again.
I think thats not the intended behavior, right?