Leo
Leo
SSolidJS
Created by Leo on 1/2/2024 in #support
Failed to build with Vite plugin and Vercel adapter.
Hi all, I'm trying to deploy my app to Vercel. I've had no luck so far (I can see the project files on Vercel's directory listing no matter what I change). I then came across the solid-start-vercel package which provides an adapter for the vite config, hoping it might work. The current vite config is as follows:
import { defineConfig } from "@solidjs/start/config";
import solid from "solid-start/vite";
import vercel from "solid-start-vercel";

export default defineConfig({
plugins: [
solid({
ssr: true,
adapter: vercel(),
}),
],
});
import { defineConfig } from "@solidjs/start/config";
import solid from "solid-start/vite";
import vercel from "solid-start-vercel";

export default defineConfig({
plugins: [
solid({
ssr: true,
adapter: vercel(),
}),
],
});
However, when I try to build with bun run build (or npm), I get the following error: "[commonjs--resolver] Missing "./dist/types/collapsible" specifier in "@kobalte/core" package". However, if I remove the solid() function from the config, it builds correctly. I am actually using solid-ui which is then using kobalte as a dependency. All packages and dependencies are at their latest version. Thanks in advance.
19 replies