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

【部署错误】更改任意配置,就会报错 #2427

Open
Yogayu opened this issue May 18, 2024 · 1 comment
Open

【部署错误】更改任意配置,就会报错 #2427

Yogayu opened this issue May 18, 2024 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@Yogayu
Copy link

Yogayu commented May 18, 2024

描述遇到的问题
简单说明你遇到的问题,相关的日志、错误信息

主要更改了config文件的任意配置,就会报错,例如更改theme:

info - Linting and checking validity of types...
14:39:17.088 info - Creating an optimized production build...
14:39:17.317 [默认主题] /vercel/path0/themes/NEXT_PUBLIC_THEME
14:39:29.412 Failed to compile.
14:39:29.412
14:39:29.413 ./themes/theme.js
14:39:29.413 Module not found: Can't resolve '@theme-components'
14:39:29.413
14:39:29.413 https://nextjs.org/docs/messages/module-not-found
14:39:29.413
14:39:29.413 Import trace for requested module:
14:39:29.418 ./pages/404.js
14:39:29.419
14:39:29.419
14:39:29.419 > Build failed because of webpack errors
14:39:29.564 error Command failed with exit code 1.
14:39:29.564 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
14:39:29.580 Error: Command "yarn run build" exited with 1
14:39:30.043

相应配置
相关的配置,例如notion_page_id;你的网站地址

截图
相关的页面,应该用结果

环境

  • 操作系统: macOS,
  • 浏览器 safari
  • 版本 [e.g. 22]
@tangly1024 tangly1024 added the help wanted Extra attention is needed label May 20, 2024
@tangly1024
Copy link
Owner

主题名配置有误,
正确应该是英文小写,例如 hexo ,heo,next,simple等等。
你的日志显示,主题名称为 NEXT_PUBLIC_THEME

** [默认主题] /vercel/path0/themes/NEXT_PUBLIC_THEME**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants