CodinGame / monaco-vscode-api

VSCode public API plugged on the monaco editor
MIT License
205 stars 29 forks source link

Vsix plugin doesn't work in dev mode #438

Open caleb1248 opened 1 month ago

caleb1248 commented 1 month ago

I installed the rollup vsix plugin and when importing it, I got this error: image

It works fine when building for production though. How do I get the vsix plugin to work in dev mode?

CGNonofr commented 1 month ago

I've just checked and I'm unable to reproduce. Can you provide a minimal reproduction repo or at least the generated invalid code?

caleb1248 commented 1 month ago

Here is my code: https://codesandbox.io/p/devbox/monaco-vscode-api-test-forked-jh4ntq

This line below causes the vite error screen in dev mode ("npm run dev").

import "./assets/theme.vsix";

However, no error is produced when running npm run build

CGNonofr commented 1 month ago

I've just forked and tried your sandbox, and I see no issue :thinking: image

Do you use a special env configuration or something? What is your operating system?

caleb1248 commented 1 month ago

I have no special env configuration, and I have been making the app entirely in CodeSandbox (no local machine). image

CGNonofr commented 1 month ago

I see your error on your sandbox, but if I restart vite there is no error, either on linux or windows

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 30 days with no activity.