Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.#160

Merged
alexdima merged 1 commit intomicrosoft:mainfrom
six-ponies:fix/import-script-protocol-error
Aug 30, 2021
Merged

fix: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.#160
alexdima merged 1 commit intomicrosoft:mainfrom
six-ponies:fix/import-script-protocol-error

Conversation

@six-ponies
Copy link

This commit is to fix 'Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL xxx is invalid.' error when the worker's url starts with '//'

@alexdima
Copy link
Member

@six-ponies Do you have an example webpack config that triggers this to help reproduce?

@six-ponies
Copy link
Author

six-ponies commented Aug 25, 2021

@six-ponies Do you have an example webpack config that triggers this to help reproduce?

see: https://github.com/six-ponies/monaco-editor-test

image

@alexdima
Copy link
Member

Thank you!

@alexdima alexdima added this to the September 2021 milestone Aug 30, 2021
@alexdima alexdima merged commit 6a882e9 into microsoft:main Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants