mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-25 06:25:54 +03:00
[GH-ISSUE #226] Windows - Failed to load module script #168
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lalitkale on GitHub (Dec 23, 2019).
Original GitHub issue: https://github.com/go-shiori/shiori/issues/226
I am facing issue #182 again. I downloaded the binary "shiori-windows-amd64.exe" for v1.5.0 on Windows 10 and just fired "shiori serve" and getting blank page with
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML specerror in browser console for 'base.js', 'home.js', 'settings.js' and 'dialog.js'.go version go1.13.5 windows/amd64
Appreciate any help towards workarounds or proper fix.
Originally posted by @lalitkale in https://github.com/go-shiori/shiori/issues/182#issuecomment-568461097
@deanishe commented on GitHub (Aug 6, 2020):
Can you please post more information? The version of Windows you're using doesn't help much because it's a browser issue.
Please tell me the browser and version you're using, and if possible the request and response headers from its inspector.
@lalitkale commented on GitHub (Aug 9, 2020):
Thank you so much for responding on the issue. I had been using chrome at the time of reporting the issue. Give me a day or two and I will try to reproduce the issue again with new version. If I still get it, will report it. If not, we can close it. Will that work?
@sjbr commented on GitHub (Aug 13, 2020):
I have this problem on Windows 10 using Chrome or Firefox
@sjbr commented on GitHub (Aug 13, 2020):
The serve command in windows is not configuring properly the MIME types of js scripts.
@symgryph commented on GitHub (Aug 13, 2020):
You might want to try the docker image. You’ll need to use the pull request since the one in master doesn’t compile correctly.
@lalitkale commented on GitHub (Sep 20, 2020):
It looks like, I am not getting enough time to reproduce the issue again. Hence, we could close the issue.
@70B43r commented on GitHub (Oct 27, 2020):
Stumbled over the same issue.
After some investigation the following hint leads me to the solution:
https://stackoverflow.com/questions/3442607/mime-types-in-the-windows-registry
Changing "ContentType" of Key HKEY_CLASSES_ROOT.js to "application/javascript" solved the problem and go serves not the correct mime.
mimetype.zip