hexojs/hexo

Uncaught TypeError: Cannot read property 'replace' of null #4486

KumaNNN posted onGitHub

<!-- NOTE: 针对简体中文用户的提示:在提交 issue 时请不要删除下面的模板,按照步骤提供相关信息将有助于我们调查你的问题。请尽量使用英语描述你的问题,这可以让更多的人帮助到你。 If you find that markdown files are not rendered as expected, please go to https://marked.js.org/demo/ to see if it can be reproduced there. If it can be reproduced, please file a bug to https://github.com/markedjs/marked. If you want help on your bug, please also send us the git repository (GitHub, GitLab, Bitbucket etc...) where your hexo code is stored. It would greatly help. If you prefer not to have your hexo code out in public, please upload to a private GitHub repository and grant read-only access to hexojs/core Please take extra precaution not to attach any secret environment variables (likes password or GitHub Personal Access Token). -->

Check List

Please check followings before submitting a new issue.

  • I have already confirmed other issue template and they are not different my want

Information

<!-- Question description -->

Environment & Settings

Node.js & npm version

node: v12.18.1
npm: 6.14.5

Hexo and Plugin version(npm ls --depth 0)

hexo : 5+
next: 7.8.0

Error(错误)

Uncaught TypeError: Cannot read property 'replace' of null

1597952261281

Reason(原因)

hexo : 5+

next 主题未更新版本号,fdaf3e3 修复了此问题。 Next theme is not updated version number, fdaf3e3 fixes this problem.

hexo : 4

无错误 No error.

Solution(解决方案)

使用 hexo-theme-next:master 中的文件 next\source\js\utils.js 覆盖themes\next\source\js\utils.js Overlay themes\next\source\js\utils.js with file next\source\js\utils.js from hexo-theme-next:master.

Note

如果你遇到同样的问题,可尝试此方案。 If you have the same problem, try this solution.


There is a discussion about it: https://github.com/hexojs/hexo/issues/4484 I'm closing this issue. Please join the discussion there :)

posted by stevenjoezhang over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests