-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
When trying to load a custom made Multi-Threaded build in Vite in a worker, I'm getting the following error.
Refused to execute script from '<URL>' because its MIME type ('application/wasm') is not executable.
I'm loading it like this:
import mainJs from './customBuild.multi-threaded.no-exceptions.progress-indicator'
import mainWasm from './customBuild.multi-threaded.no-exceptions.progress-indicator.wasm?url'
import worker from './customBuild.multi-threaded.no-exceptions.progress-indicator.worker.js?worker'
mainJs({
locateFile: () => mainWasm,
worker: worker
}).then((o) => {
oc = o
console.timeEnd('Loading OpenCascade.js')
postMessage({ messageType: 'INITIALIZED' })
})
Could anyone point me in the right direction?
0xorial
Metadata
Metadata
Assignees
Labels
No labels