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

Failed to import - [email protected]/esm/vs/editor/editor.worker #198

Closed
uki00a opened this issue Oct 31, 2021 · 1 comment
Closed

Failed to import - [email protected]/esm/vs/editor/editor.worker #198

uki00a opened this issue Oct 31, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@uki00a
Copy link

uki00a commented Oct 31, 2021

Failing module

import EditorWorker from "https://esm.sh/[email protected]/esm/vs/editor/editor.worker?worker";
const worker = new EditorWorker();

Error message

After running deno run I get this:

Download https://esm.sh/[email protected]/esm/vs/editor/editor.worker?worker
error: Uncaught URIError: invalid URL: relative URL without a base
  return new Worker('/v55/[email protected]/deno/esm/vs/editor/editor.worker.js', { type: 'module' })
                                                                                                                         ^
    at Object.opSync (deno:core/01_core.js:138:12)
    at createWorker (deno:runtime/js/11_workers.js:31:17)
    at new Worker (deno:runtime/js/11_workers.js:115:18)
    at new WorkerWrapper (https://esm.sh/[email protected]/esm/vs/editor/editor.worker?worker:3:10)
    at file:///home/uki00a/ghq/github.com/uki00a/deno-weekly/sample.js:2:16

Additional info

  • esm.sh version: v55
  • Deno version: 1.15.3
@uki00a uki00a added the bug Something isn't working label Oct 31, 2021
@ije ije closed this as completed in a1c97ff Oct 31, 2021
@ije
Copy link
Member

ije commented Oct 31, 2021

@uki00a thanks, i just fixed the import url, but seems the monaco-editor workers can not run in deno, something is undefined
Screenshot 2021-10-31 at 18 14 23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants