Skip to content

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

@j1g5awi

Description

@j1g5awi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions