New Capacitor Templates: SolidJS + Vite

Originally published at:

Today, I’m excited to share with you new app templates for Capacitor and SolidJS. SolidJS is a newer frontend framework that has been gaining popularity recently. In the 2021 State of JS survey, Solid had a 90% satisfaction rate as well as excellent starter templates that we can build upon. With Capacitor, developers can bring…

1 Like

Unfortunately the recipe does not work

npm install says:

$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: capacitor-solid-template@0.0.0
npm ERR! Found: vite@2.9.15
npm ERR! node_modules/vite
npm ERR!   dev vite@"^2.8.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from vite-plugin-solid@2.6.1
npm ERR! node_modules/vite-plugin-solid
npm ERR!   dev vite-plugin-solid@"^2.2.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

UPDATE: Adding ‘–legacy-peer-deps’ made it work.
This all on MacOS ventura with npm 9.5.0 and node v19.7.0