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 cannot load the yaml-language-server in Angular 19 in a worker (serving using ng serve which uses Vite). No matter if I import it myself or if I try to use the monaco-yaml library, the same thing happens. Somehow the UMD code is being loaded, not the ESM code, as a result I get the error:
Uncaught Error: Dynamic require of "jsonc-parser" is not supported
Relevant information
I've tried both:
import { getLanguageService } from 'yaml-language-server/lib/esm/languageservice/yamlLanguageService';
and
import { getLanguageService } from 'yaml-language-server';
As you can see in the screen shot, the UMD library is being loaded, not the ESM library as expected (see the cb in the upper right's path, it is coming from umd)
Any idea on what I'm doing wrong?
Has anyone managed to get this working with Angular 19?
The text was updated successfully, but these errors were encountered:
Summary
I cannot load the
yaml-language-server
in Angular 19 in a worker (serving usingng serve
which uses Vite). No matter if I import it myself or if I try to use the monaco-yaml library, the same thing happens. Somehow the UMD code is being loaded, not the ESM code, as a result I get the error:Relevant information
I've tried both:
and
As you can see in the screen shot, the UMD library is being loaded, not the ESM library as expected (see the
cb
in the upper right's path, it is coming fromumd
)Any idea on what I'm doing wrong?
Has anyone managed to get this working with Angular 19?
The text was updated successfully, but these errors were encountered: