-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite 5 support #127
Vite 5 support #127
Conversation
Highest priority! |
For info, with vite 5, the solid-start-deno adapter does not work when building the project. |
solid-start is kind of a next step after this. I also stumbled upon some issues with adapters solidjs/solid-start#1124 , but figured it's probably more feasible to await the new Nitro/Vinxi version, which replace i.e. solid-start-deno, and then have a look at it. |
@ryansolid @birkskyum What's missing to get this merged? |
I'm not currently aware of anything missing. |
I'm also getting errors from
|
I don't think this will fix the solid-start-cloudflare-pages adapter. It'll be replace with this adapter soon, so it might help. |
Is this related to |
Can/Should this PR also fix the deprecated APIs that were being used? I know we have been getting spammed with warnings when running tests as a result of registerNodeLoader. This was removed in vitest 1.0 here and since Vite 5 and Vitest 1 are tightly coupled, it'd make sense to fix that here. |
How do I do that? Is it a matter of replacing registerNodeLoader with optimizer as indicated here: deps: { registerNodeLoader: true }, replaced with: deps: {
optimizer: {
ssr: {enabled: true},
web: {enabled: true}
}
}, Or should |
@birkskyum I'm not sure. It might work just by being removed. The docs you found seem to point to just removing it. |
Think so too - guess there's a reason for this issue being opened: I have removed it. |
Thanks everyone. Sorry for taking my time here. Often with new versions we hit some fun issues..So was just letting it breathe. |
Closes #126
I updated the examples to have separate examples for Vite 3, 4 and 5, and checked they all work.
I added vite 5 to the peer deps:
"peerDependencies": {
"solid-js": "^1.7.2",
"vite": "^3.0.0 || ^4.0.0 || ^5.0.0"
},