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
Contributions
Describe the bug
When I clone vite-ssg, install packages (
npm install) & runnpm run dev|pnpm run devit 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/pnpmUsed Package Manager
npm
Validations
Contributions