Cant find variable def_options
ISSUE
From 0.7.11 on wards (0.7.10 it still works) if one clicks on the menu properties to edit one of the items it throws a "Cant find variable def_options" in the console.
At the moment having to use an older build 0.7.10 that does not have this issue and opens the property editor from a menu item of a node.
I found this pull request https://github.com/jagenjo/litegraph.js/pull/348 and then tried using the git repo and master "litegraph.js": "jagenjo/litegraph.js#master", in my local build but it was still throwing this issue.
To reproduce simply create the boiler plate example as defined in the readme of this project.
- right click any node
- try edit any property of that node
It looks like there are multiple cases when variables are defined without let, var or const. In webpacked environment or if "use strict" was used, errors are produced.
you are correct!
my environment is using vite and vue3 on the front end, where these issues are exposed.
please, if you spot them add PRs with the fix