"Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec."
This leads me to suspect that the .js worker file isn't added (returns a 404 perhaps, hence the text/html MIME error??)
App.vue
const myWorker = new Worker('@/worker.js', {type:'module'})
The worker.js file is located in the root folder, same as where the App.vue is.
I've seen similar issue being reported but without any solutions that work for this case.
I get the following error:
"Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec."
This leads me to suspect that the .js worker file isn't added (returns a 404 perhaps, hence the text/html MIME error??)
vue.config.js
App.vue
const myWorker = new Worker('@/worker.js', {type:'module'})
The worker.js file is located in the root folder, same as where the App.vue is. I've seen similar issue being reported but without any solutions that work for this case.