-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
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?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
When configure loader with custom vs path like this
import Editor, { loader } from "@monaco-editor/react";
loader.config({ paths: { vs: `node_modules/monaco-editor/min/vs` } });So during component loading, it shows error in terminal console.
7:12:31 pm [vite] (client) Failed to load source map for /home/project/node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/min/vs/loader.js.
Error: An error occurred while trying to read the map file at ../../min-maps/vs/loader.js.map
Error: ENOENT: no such file or directory, open ' /home/project/node_modules/.pnpm/monaco-editor@0.55.1/node_modules/monaco-editor/min-maps/vs/loader.js.map'
at async open (node:internal/fs/promises:637:25)
at async Object.readFile (node:internal/fs/promises:1269:14)
at async extractSourcemapFromFile (file:///var/ /home/project/node_modules/.pnpm/vite@7.3.1_@types+node@24.1.0_lightningcss@1.30.1_sass@1.77.8_terser@5.46.0/node_modules/vite/dist/node/chunks/config.js:8050:65)
at async loadAndTransform (file:///var/ /home/projectnode_modules/.pnpm/vite@7.3.1_@types+node@24.1.0_lightningcss@1.30.1_sass@1.77.8_terser@5.46.0/node_modules/vite/dist/node/chunks/config.js:22641:22)
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels