Skip to content
Discussion options

You must be logged in to vote

Vite+ itself should not require Solid-specific support: it provides the Vite toolchain, while Solid compilation is handled by the Solid Vite plugin.

However, vite-plugin-solid 2.x currently declares solid-js: ^1.7.2, so that package line does not officially support Solid 2. For Solid 2 RC, use the new @solidjs/vite-plugin 3.x prerelease intended for Solid 2, rather than forcing Solid 2 through vite-plugin-solid 2.x.

A minimal configuration should remain the usual Vite setup:

import { defineConfig } from "vite";
import solid from "@solidjs/vite-plugin";

export default defineConfig({
  plugins: [solid()],
});

Vite+ currently expects Vite 8 or newer, and the Solid 2 plugin is also being dev…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blueboy90780
Comment options

Answer selected by blueboy90780
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants