You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also experienced this issue but was able to fix it by including the default options. Try this:
letoptions=monaco.languages.typescript.javascriptDefaults.getCompilerOptions()options.noLib=true// example changemonaco.languages.typescript.javascriptDefaults.setCompilerOptions(options)
I also experienced this issue but was able to fix it by including the default options. Try this:
letoptions=monaco.languages.typescript.javascriptDefaults.getCompilerOptions()options.noLib=true// example changemonaco.languages.typescript.javascriptDefaults.setCompilerOptions(options)
its because you need set allowNonTsExtensions to true
Hello! Thank you for making this library, it's so much better than other monaco editors out there.
Describe the bug
It appears that doing anything with the monaco instance results in
Uncaught Error: Could not find source file
errors.To Reproduce
Add the following to your code:
Also be sure to use
language="javascript"
Here's a minimally reproducable example:
https://codesandbox.io/s/patient-sky-uykvg?file=/src/App.js
Note that these errors don't show in the Codesandbox console for some reason, you have to actually open your Chrome console to see them.
The text was updated successfully, but these errors were encountered: