bug: WebWorker doesn't work when stencil component library imported to nextjs app #3512
Open
3 tasks done
Labels
Bug: Validated
This PR or Issue is verified to be a bug within Stencil
Prerequisites
Stencil Version
2.13.0
Current Behavior
When trying to use a component which implements a method delegated to a web worker I get a
Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL '/_next/static/media/<file_name>.js' is invalid.
exception.Expected Behavior
The web worker starts properly & can communicate with the component.
Steps to Reproduce
yarn install
yarn build
yarn dev
localhost:3000
and check the console output.Code Reproduction URL
https://github.com/jeski-bright/stencil-next-example
Additional Information
This is similar to #2731, however here it almost works, with webpack5 there is no bug with
import.meta.url
only the parsed url.href is incorrect.The text was updated successfully, but these errors were encountered: