-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] TypeError: Failed to execute 'fetch' on 'WorkerGlobalScope': Failed to parse URL from app/monaco/vs/language/json/jsonWorker.js #4778
Comments
the worker loads used to work in 0.50.0 |
Did it fail to parse because the page gives a 404? |
it's ok when use sql, but show this error when load htmlworker.js |
not sure I understand... What I see is that it fails with jsonmode and cssmode ... which I assume will try to load workers ... however when using "sql" mode - it is using the workermain and have no loading worker issues... |
I have the same issue. It happens when a relative path is used for require.config({ paths: { vs: 'monaco-editor/min/vs' } }); Using an absolute path fixes the issue. require.config({ paths: { vs: 'http://localhost:5000/monaco-editor/min/vs' } }); Looks like relative paths are broken somewhere between |
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
Reproduction Steps
No response
Actual (Problematic) Behavior
editor.main.js:9 Uncaught Error: Failed to execute 'fetch' on 'WorkerGlobalScope': Failed to parse URL from app/monaco/vs/language/json/jsonWorker.js
TypeError: Failed to parse URL from app/monaco/vs/language/json/jsonWorker.js
at A.load (workerMain.js:6:13847)
at n.load (workerMain.js:6:11936)
at r (workerMain.js:8:9341)
at f._loadModule (workerMain.js:8:9469)
at f._resolve (workerMain.js:9:452)
at f.defineModule (workerMain.js:8:5564)
at f._relativeRequire (workerMain.js:8:6188)
at a (workerMain.js:8:8519)
at workerMain.js:29:82407
at new Promise ()
at A.load (workerMain.js:6:13847)
at n.load (workerMain.js:6:11936)
at r (workerMain.js:8:9341)
at f._loadModule (workerMain.js:8:9469)
at f._resolve (workerMain.js:9:452)
at f.defineModule (workerMain.js:8:5564)
at f._relativeRequire (workerMain.js:8:6188)
at a (workerMain.js:8:8519)
at workerMain.js:29:82407
at new Promise ()
at editor.main.js:9:12
Expected Behavior
No response
Additional Context
This is 52.2 using Chrome latest - using
import loader from '@monaco-editor/loader';
"@monaco-editor/loader": "^1.4.0",
The text was updated successfully, but these errors were encountered: