capri-js / capri

Build static sites with interactive islands
https://capri.build
MIT License
200 stars 5 forks source link

Missing @types/node #33

Closed eric-burel closed 2 years ago

eric-burel commented 2 years ago

After running yarn create capri my-app -e react, vite.config.ts will use process yet @types/node is not installed, making TypeScript unhappy. It should be added as dev dependency to the package.json to fix this issue.

I couldn't figure how to send a PR for that though because I didn't find where the template projects are defined?

fgnass commented 2 years ago

Oh yes, thanks for reporting it! I went a different route and removed the base setting (and process.env) from vite.config.ts altogether, as it was only used for the GitHub pages deployment of the examples. BTW, the code for the examples that is used by create-capri lives in https://github.com/capri-js/capri/tree/next/examples