Open StefanRetief opened 3 years ago
Same here, using import fails... using require works but no type is inferred
Any update on this? @StefanRetief @arslan-bz did you found the solution?
@akcyp unfortunately not. I converted my json files to ts files before loading them into the editor or used require.
I'm attempting to import a JSON editor model in withing a typescript editor model. I've been able to successfully do this within vscode but haven't had any luck with monco-editor as it shows a validation error "Cannot find module {...} or its corresponding type declarations". I was able to import a typescript model in using the same method I am using for the json model and i've adjusted the typescript/javascript compiler options to match that of my vscode version, which should allow json modules to be resolved.
monaco-editor version: 0.22.3 Browser: Firefox OS: Windows Playground code that reproduces the issue: