Skip to content
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

Can't load jsonWorker.js when using custom CDN #686

Open
cwtuan opened this issue Jan 3, 2023 · 0 comments
Open

Can't load jsonWorker.js when using custom CDN #686

cwtuan opened this issue Jan 3, 2023 · 0 comments

Comments

@cwtuan
Copy link

cwtuan commented Jan 3, 2023

Describe the bug
Can't load jsonWorker.js when using custom CDN.

To Reproduce

import MonacoEditor, { useMonaco, OnMount, Monaco, loader } from "@monaco-editor/react";
loader.config({ paths: { vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.33.0/min/vs/" } });

const fn = () => {
 return (<MonacoEditor defaultLanguage="json"  />)
}

image

Expected behavior
Expected to load https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.33.0/min/vs/language/json/jsonWorker.js
But it loads https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.33.0/min/v/vs/language/json/jsonWorker.js

Environment :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant