S
SolidJS11mo ago
Minoo

How do I upgrade a solid-start project to use the latest version of solid-start

I found a project that uses solid-start and actually has a working PWA. But it is from february 2023 and I want to update it to the newest version of solid-start and its current structure. Is this possible and how? The current version is ^0.2.20 (The repo in question: https://github.com/seeplusplus/solid-start-vite-pwa)
3 Replies
Raqueebuddin Aziz
pnpm update --latest
InnerSun
InnerSun11mo ago
Take a look at https://github.com/solidjs/solid-start/discussions/1052 1 . Remove the solid-start package and replace with @solidjs/start 2. The main changes are that you need to import stuff from @solidjs/start, @solidjs/meta and @solidjs/router packages, and that you need to update root.tsx to app.tsx. 3. The package.json scripts should also be updated to use vinxi :
{
"name": "solid-start-vite-pwa",
"scripts": {
"dev": "vinxi dev",
"build": "vinxi build",
"start": "vinxi start"
},
...
}
{
"name": "solid-start-vite-pwa",
"scripts": {
"dev": "vinxi dev",
"build": "vinxi build",
"start": "vinxi start"
},
...
}
Minoo
MinooOP11mo ago
Thank you very much
Want results from more Discord servers?
Add your server