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

Expected a JavaScript module script but the server responded with a MIME type of "text/plain". #47

Closed
tengfong00 opened this issue Dec 27, 2021 · 1 comment

Comments

@tengfong00
Copy link

The command I use it just normal openbooks server
image
image

This is what the browser devtools console error came out with a blank white screen.
image

@evan-buss
Copy link
Owner

evan-buss commented Dec 27, 2021

I encountered this issue on Windows 11. Are you using Windows by chance? I see this issue in the Go repository. It seems this is caused by incorrect configuration in the Windows Registry. Some applications (such as Visual Studio) modify the registry. See Stack Overflow.

I was able to fix this on my machine by modifying the registry seen below.

Before:
image

After:
image

After updating the "Content Type" entry, the web page loads properly.

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

No branches or pull requests

2 participants