You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
If I use webpack I get the following error when instantiating WORKER below... Uncaught TypeError: _dist_workers_worker_js__WEBPACK_IMPORTED_MODULE_1___default.a is not a constructor
If I import with worker-loader inline like import Worker from 'worker-loader!../../../dist/workers/worker.js' I don't get that error, but it doesn't seem that my publicPath in webpack is being applied because I get this error... `Security Error: Content at https://my-app.com may not load data from https://my-cdn.com/base/js/worker.bundle.worker.js.
Thanks. The documentation you linked to is what I am trying to follow to get around the cross-origin issue. I've tried both recommended workarounds with no luck. Are you saying those workarounds require webpack v5?
It seems related to the fact that your worker.js file is not exporting anything, but then you are importing it. I am having a similar issue when following the README examples.
Expected Behavior
Should get no errors and publicPath should work.
Actual Behavior
If I use webpack I get the following error when instantiating WORKER below...
Uncaught TypeError: _dist_workers_worker_js__WEBPACK_IMPORTED_MODULE_1___default.a is not a constructor
If I import with worker-loader inline like
import Worker from 'worker-loader!../../../dist/workers/worker.js'
I don't get that error, but it doesn't seem that mypublicPath
in webpack is being applied because I get this error... `Security Error: Content at https://my-app.com may not load data from https://my-cdn.com/base/js/worker.bundle.worker.js.Code
The text was updated successfully, but these errors were encountered: