Open madser123 opened 6 months ago
Update: This, seemingly, happens when i switch to using Javascript instead of Rust as the langauge.
@madser123 This is happening because the typescript/javascript worker for monaco is missing in the build. You can add it manually as I have. That solved this issue for me.
@siku2 should I raise a PR to add support for Typescript/Javascript?
should I raise a PR to add support for Typescript/Javascript?
please do, @Datron, your changes look good.
When using a modified version of the yew_events_keymapping example, i get the following error messages whenever the editor is updated (Scrolling, keyevents and alike):
The code in question is like so:
I'm using the main branch, as the yew 21.0 update isn't on crates.io yet.
Import in Cargo.toml:
After reading issues on the monaco github, it seems to relate to the way the editor is set up, but i might be wrong. Is there something i can do to resolve this? Or is this an issue with the way the editor is set up in the library?
Edit: Everything else works, it's just the errors that are the "issue".
Edit: I also can confirm that the example i derived this from, does work exactly as intended, without any errors. I just don't see how the code in question actually changes anything related to throwing the error.