-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to load modules dynamically? #16
Comments
After updating the modules:
When trying to open the index editor view When I open the Modules in editor view, they have properly named input and output Ports. Same JSON file for Modules displays fine if provided to the ModulePlugin here: editor.use(ModulePlugin.default, { engine, modules }); |
I just ran into this exact issue as well and found a solution. I'll try my best to explain what's going on, but be aware I'm 100% self taught so I may not know the right words to describe everything. Here's what I think is happening. When you assign the modules object to the editor in the line: The solution is to modify your object without completely re-creating it. See the answer by georg in the following stack exchange question https://stackoverflow.com/questions/26957719/replace-object-value-without-replacing-reference. Copy that "modify" function into your script, then change the above line in your code to instead be: This is what worked for me. Hopefully that makes some sense. Good luck! |
I'm looking for a way to tell the engine that modules have been updated.
The text was updated successfully, but these errors were encountered: