PrismarineJS/prismarine-viewer

Loading Worker error #63

ratuspro posted onGitHub

I'm experiencing some problems when opening the viewer in Firefox.

The error is as follows: Loading Worker from “http://localhost:3001/node_modules/prismarine-viewer/src/worker.js” was blocked because of a disallowed MIME type (“text/html”)

It also happens in other browsers such as Chrome and Edge.

It is possible to see the Firefox's logs in the following image unknown

The problem is related with the worker.js file being loaded from the wrong path.


Interesting, this was introduced in the latest version. Apparently the browser detection is failing. I'll see if I can reproduce, in the mean time you can revert back to pviewer 1.6.0.

Thanks for the reporting

posted by Karang over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests