Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading Worker error #63

Closed
ratuspro opened this issue Dec 3, 2020 · 1 comment · Fixed by #64
Closed

Loading Worker error #63

ratuspro opened this issue Dec 3, 2020 · 1 comment · Fixed by #64

Comments

@ratuspro
Copy link

ratuspro commented Dec 3, 2020

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.

@Karang
Copy link
Collaborator

Karang commented Dec 3, 2020

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

@Karang Karang mentioned this issue Dec 3, 2020
@Karang Karang closed this as completed in #64 Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants