Skip to content

Can not build vite-ssg #415

@JeffreyArts

Description

@JeffreyArts

Describe the bug

When I clone vite-ssg, install packages (npm install) & run npm run dev | pnpm run dev it throws the following error:


error TS2688: Cannot find type definition file for 'vite-plugin-pages/client'.
The file is in the program because:
Entry point of type library 'vite-plugin-pages/client' specified in compilerOptions

ERROR Error building /Users/jeffreyarts/repos/vite-ssg: RollupError: Failed to compile. Check the logs above. 2:55:55 PM

ERROR Failed to compile. Check the logs above. 2:55:55 PM

at error (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
at Object.error (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:25351:20)
at Object.error (node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:24472:42)
at generateDtsFromTs (node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1834:30)
at Object.transform (node_modules/rollup-plugin-dts/dist/rollup-plugin-dts.mjs:1843:38)
at node_modules/unbuild/node_modules/rollup/dist/es/shared/node-entry.js:25544:40
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

ERROR Failed to compile. Check the logs above.

Reproduction

https://github.com/antfu-collective/vite-ssg/

System Info

System:
    OS: macOS 14.1.2
    CPU: (8) arm64 Apple M1
    Memory: 231.02 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.22 - ~/.yarn/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.7.1 - ~/.nvm/versions/node/v20.10.0/bin/pnpm

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • 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.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions