-
|
I've been trying to load extensions. I can see that it correctly loads the languages and grammars contribution files and provides proper syntax highlighting. But I encounter errors if it tries to load extension logic.
Here's an example of what I've got so far testing with json extensions https://github.com/Sammy-T/monaco-err/blob/master/src/main.js Am I missing or misunderstanding something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I'm not sure what you are trying to achieve loading those json and json-language-features default extensions by hands while this library already bundles them for you 🤔 You should have a look at your terminal though, there are errors, and those errors are related to your issue. Vite handles the |
Beta Was this translation helpful? Give feedback.
-
What do you mean by
You are doing |
Beta Was this translation helpful? Give feedback.

What do you mean by
dynamically? if you mean being able to load them at any moment, that's already doable by importing the package dynamically whenever you wantYou are doing
new URL(importPath, import.meta.url).toString()(l105), how do you expect vite to be able to add that assets to the final bundle? it needs a literal path.