Skip to content

[Bug] Home page demo is broken #3853

Closed
Closed

Description

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or 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" 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions