[Bug] Incorrect import path for anchorSelect.css #3790
-
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground CodeNo response Actual BehaviorI have Internal server error: Failed to resolve import "/path/to/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/anchorSelect.css" from "node_modules/.vite/monaco-editor.js?v=659e8648". Does the file exist?
Plugin: vite:import-analysis
File: /path/to/node_modules/.vite/monaco-editor.js?v=659e8648
2995| init_nls();
2996| init_contextkey();
2997| import "/path/to/node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/anchorSelect.css";
| ^
2998| var __decorate = function(decorators, target, key, desc) {
2999| var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; In looking for the location of This error is not seen when I revert to Expected BehaviorShould not see the error mentioned when using Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @corydeppen |
Beta Was this translation helpful? Give feedback.
Hello @corydeppen
I have stumbled accross this as well. Deleting node_modules/.vite directory and restarting vite server does help for me.