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

ts.xcatliu.com这个地址大纲章节跳转失效 #182

Closed
coderkeel opened this issue Jul 2, 2020 · 4 comments
Closed

ts.xcatliu.com这个地址大纲章节跳转失效 #182

coderkeel opened this issue Jul 2, 2020 · 4 comments

Comments

@coderkeel
Copy link

大纲章节点击无效,环境为 Mac 10.15.5,Chrome 版本 83.0.4103.116(正式版本)(64 位)

控制台报错信息为:

Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://ts.xcatliu.com/introduction/what-is-typescript

@xcatliu
Copy link
Owner

xcatliu commented Jul 2, 2020

大纲章节是哪一节?能描述一下详细的复现步骤吗?

@coderkeel
Copy link
Author

左侧所有的章节跳转,包括章节内的“上一章”、“下一章”,还有“黑暗模式切换按钮”,都是点击无效的状态。
右上角Github链接正常,左下角Powered by Pagic正常。

看上面提及的报错信息,我猜测是页面JS模块引用相关的问题。最近几天我和身边同事访问都是这样,就正常访问就可以复现。

@coderkeel
Copy link
Author

找到了一个规律,目录点不了的时候,gittalk评论组件也加载不出来

@xcatliu
Copy link
Owner

xcatliu commented Jul 3, 2020

再试一下,我加了个逻辑,报错时禁用 spa 了

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