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 noticed this when I was debugging Critical dependency: the request of a dependency is an expression webpack warning.
This warning comes from https://github.com/microsoft/monaco-editor/blob/main/website/src/website/pages/home/Home.tsx#L159.
But I don't know why webpack can not load file.
I also tried webpackMode: "eager" or webpackInclude: /\.txt?/ as reference mentioning here, but nothing solved.
If I specify static dependency as import(`../../data/home-samples/sample.typescript.txt`), it works correctly.
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
Open https://microsoft.github.io/monaco-editor/
Actual (Problematic) Behavior
Demo editor always shows
loading...
Expected Behavior
Demo editor shows correct language sample code.
Additional Context
I noticed this when I was debugging
Critical dependency: the request of a dependency is an expression
webpack warning.This warning comes from https://github.com/microsoft/monaco-editor/blob/main/website/src/website/pages/home/Home.tsx#L159.
But I don't know why webpack can not load file.
I also tried
webpackMode: "eager"
orwebpackInclude: /\.txt?/
as reference mentioning here, but nothing solved.If I specify static dependency as
import(`../../data/home-samples/sample.typescript.txt`)
, it works correctly.The text was updated successfully, but these errors were encountered: