You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
During a backend integration (AdonisJS in my case), the generated link to load a worker contain both URL (backend & Vite server).
This happens since
url
start with/
inside theWorkerWrapper
, wanting a relative URL which cannot happen when using a backend integration.The following code is used to load the
Monaco Editor
, using workers for the different language features.Vite then wraps the worker inside a
WorkerWrapper
and generate a bad link.Causing a 404.
Maybe related:
Reproduction
The repository contains a starter AdonisJS application with Vite configured and ready to be used.
Steps:
npm install
node ace serve -w
to start the web servernpm run vite:dev
to start Vite/
page of the applicationMonaco Integration can be found in
resources/js/modules/monaco.js
.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: