hexo-theme-next icon indicating copy to clipboard operation
hexo-theme-next copied to clipboard

ERROR PROBLEM "The upstream repository of theme NexT has been changed." when running "hexo g"

Open linwhitehat opened this issue 4 years ago • 15 comments

Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist

  • [x] I am using the v7.7.0 version of NexT.
  • [x] I have read the relevant documents of Hexo and NexT.
  • [x] I have reviewed the latest Roadmap on GitHub and searched for current issues, which does not help me.

Other Information

今天修改主题配置后,执行hexo g发生以下错误:

ERROR The upstream repository of theme NexT has been changed.
ERROR For more information: https://github.com/next-theme/hexo-theme-next
ERROR Documentation: https://theme-next.js.org

如何处理这个问题以及为何会产生这个问题呢?一两周前还是没有显示这个错误的,虽然没有产生实际的运行影响,但是不知道会不会带来其他影响。

linwhitehat avatar Jul 20 '20 04:07 linwhitehat

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

issue-label-bot[bot] avatar Jul 20 '20 04:07 issue-label-bot[bot]

Emm, 我尝试用这个仓库的NexT,但并没有报错

你有做什么自定义的修改么?

jiangtj avatar Jul 21 '20 02:07 jiangtj

Emm, 我尝试用这个仓库的NexT,但并没有报错

你有做什么自定义的修改么?

我最近做了的修改有: 1、新增主题7.8.0然后名命为next-7.8.0,然后将原先7.7.0的主题文件夹重命名为next-7.7.0,并修改hexo配置为对应文件名为next-7.7.0,方便过度到新版本的配置修改和恢复到旧版 2、修改7.7.0配置下的source/css的main和index配置,主要都是样式的css修改

linwhitehat avatar Jul 21 '20 03:07 linwhitehat

似乎是我升级了hexo版本导致的问题

linwhitehat avatar Jul 21 '20 06:07 linwhitehat

Emm, 我尝试用这个仓库的NexT,但并没有报错

你有做什么自定义的修改么?

我试着回退了hexo和nodejs版本,但是还是报这个错误,有什么办法调试排查问题吗

linwhitehat avatar Jul 21 '20 11:07 linwhitehat

介不介意将你的源码上传至GitHub(请确保不包含密钥,例如GitHub Token等)?

jiangtj avatar Jul 28 '20 08:07 jiangtj

介不介意将你的源码上传至GitHub(请确保不包含密钥,例如GitHub Token等)?

可以的,上传node_modules、next、source这三个文件夹能够让你进行问题调试分析吗?

linwhitehat avatar Jul 28 '20 08:07 linwhitehat

应该是用错了next库呀。

sli1989 avatar Jul 29 '20 00:07 sli1989

可以的,上传node_modules、next、source这三个文件夹能够让你进行问题调试分析吗?

node_modules不需要的,下面是hexo init时默认的.gitignore文件

.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/

你需要检测的是_config.yml中是否存在密钥,如果存在且使用CI发布,将他们添加至对应的CI中,如GitHub的Secrets

image

并在CI中修改配置文件

如果存在但手动发布,请在上传前移除相关配置

推荐你将博客备份至版本控制仓库,以防止源码丢失

jiangtj avatar Jul 29 '20 01:07 jiangtj

应该是用错了next库呀。

但他说使用的7.x版本的next,理论上是这个仓库 😂

jiangtj avatar Jul 29 '20 01:07 jiangtj

可以的,上传node_modules、next、source这三个文件夹能够让你进行问题调试分析吗?

node_modules不需要的,下面是hexo init时默认的.gitignore文件

.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/

你需要检测的是_config.yml中是否存在密钥,如果存在且使用CI发布,将他们添加至对应的CI中,如GitHub的Secrets

image

并在CI中修改配置文件

如果存在但手动发布,请在上传前移除相关配置

推荐你将博客备份至版本控制仓库,以防止源码丢失

我已经上传了next和source,可以到我的仓库看一下 GitHub仓库的key没有删除,可以改掉本地的repo配置,我在执行hexo ghexo s都会报前面说的错误 有什么问题或者调试进展可以及时告知

linwhitehat avatar Jul 29 '20 07:07 linwhitehat

image

不能重现,我使用你提供的next-7.7.0,仍然没有错误

jiangtj avatar Jul 30 '20 01:07 jiangtj

image

不能重现,我使用你提供的next-7.7.0,仍然没有错误

那会不会还是我的hexo版本或者nodejs版本出现的问题,这是我的版本信息: image image image

linwhitehat avatar Jul 30 '20 02:07 linwhitehat

image 不能重现,我使用你提供的next-7.7.0,仍然没有错误

那会不会还是我的hexo版本或者nodejs版本出现的问题,这是我的版本信息: image image image

Hi,bro,I got this issue too,have you solved it?

zhuangside avatar Nov 29 '22 15:11 zhuangside

@zhuangside @linwhitehat

npm i theme-next/next-util

see https://s1nh.com/post/theme-next-warnning/ for detail

duchengyao avatar Dec 26 '23 08:12 duchengyao