microsoft / monaco-editor

A browser based code editor

Home Page:https://microsoft.github.io/monaco-editor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] "browser-esm-vite-react" code sample not working with monaco-editor v0.49.0

scebotari66 opened this issue · comments

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

Try to start https://github.com/microsoft/monaco-editor/tree/c49fdf9f0c131909ca1b661ca3ff4113c42f1c09/samples/browser-esm-vite-react code sample with monaco-editor v0.49.0 (there is ^0.32.0 version specified)

Actual (Problematic) Behavior

Error in console when trying to run npm run dev
image

Expected Behavior

npm run dev to start the dev server

Additional Context

No response

Updating VITE to a more recent version, such as 5.0, can resolve this problem.

Indeed! Thanks, @qirong77