Symptoms
When unzipping the project, npm install
& npm run dev
with admin rights, receive the error message:
wasm-worker.ts:201 Refused to execute script from 'http://libs/abbyy-mwc/js/wasm_engine.js?version=1.10.0_24-07-20,12:10:35' because its MIME type ('') is not executable.
Cause
This situation occurs because paths to the wasm directory (wasmFilesPath option) were specified relative to the base URL of the page. That`s why the module was not loaded correctly.
Resolution
Please, add <base href='/'>
in <head>
tag to set base URL to load resources. More information about it you can find here.
Comments
0 comments
Please sign in to leave a comment.