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

0.19.13 build 错误:TypeError: Cannot read properties of undefined (reading 'enable') #472

Open
3 tasks done
j1g5awi opened this issue Oct 30, 2024 · 3 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@j1g5awi
Copy link
Contributor

j1g5awi commented Oct 30, 2024

Describe the bug

[vite-ssg] Rendering Pages... (49)
[vite-ssg] Critical CSS generation enabled via `critters`
j1g5awi/Blog/valaxy-blog/node_modules/.pnpm/vite-ssg@0.23.7_critters@0.0.24_vite@5.4.10_@types+node@22.8.4_sass@1.80.5__vue-router@4.4.5__s5uzal5cghv3wzmh24dbzgaqhm/node_modules/vite-ssg/dist/node.mjs:1058
        throw new Error(`${gray("[vite-ssg]")} ${red(`Error on page: ${cyan(route)}`)}
              ^

Error: [vite-ssg] Error on page: /page
TypeError: Cannot read properties of undefined (reading 'enable')

Reproduction

新建项目 锁 0.19 后 pnpm build

System Info

System:
    OS: Linux 6.11 NixOS 24.11 (Vicuna) 24.11 (Vicuna)
    CPU: (12) x64 AMD Ryzen 5 5500U with Radeon Graphics
    Memory: 7.89 GB / 14.97 GB
    Container: Yes
    Shell: 5.2.26 - /nix/store/m101dg80ngyjdb02g6jwy80sr7kzj26g-bash-5.2p26/bin/bash
  Binaries:
    Node: 20.14.0 - /nix/store/ilkfhnqz4xczrliqjva8770x2svbfznd-nodejs-20.14.0/bin/node
    npm: 10.7.0 - /nix/store/ilkfhnqz4xczrliqjva8770x2svbfznd-nodejs-20.14.0/bin/npm
    pnpm: 9.4.0 - /nix/store/7r4iwsxypnp1rgd2nr2gc5gak8wn7s3a-pnpm-9.4.0/bin/pnpm
  Browsers:
    Chromium: 130.0.6723.58

Used Package Manager

pnpm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@YunYouJun YunYouJun added the bug Something isn't working label Oct 30, 2024
@YunYouJun
Copy link
Owner

YunYouJun commented Oct 30, 2024

Try:

rm -rf node_modules pnpm-lock.yaml
pnpm add valaxy@0.19.12 valaxy-theme-yun@0.19.12

0.19.13 is an ESM upgrade.


我们将在下个版本发布兼容主题:#473

@YunYouJun
Copy link
Owner

左侧侧边栏已在 v0.20.4themeConfig.type: 'strato' 回归。
顶部菜单则为 themeConfig.type: 'nimbo'

它与旧版主题的区别是,它仍然更新了部分新的组件设计。
它可能存在部分细节未兼容,并希望能够听到更多的意见。

@j1g5awi
Copy link
Contributor Author

j1g5awi commented Nov 11, 2024

strato:

  1. baner.enable false 無效,照样出现 banner
  2. 语言/主题切换按钮同时出现在右上角和左侧边栏。
  3. 网站名称为何要显示在最上方?
  4. 在页宽较小的时候仅显示正文,此时只有展开右侧边栏的按钮没有展开左侧边栏的按钮
  • 左侧边栏头像右下角的 emoji 消失
  1. 左测边栏 网站副标题的颜色与主标题无区别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants