SolidJSS
SolidJSโ€ข8mo agoโ€ข
7 replies
iocalebs

`vinxi start` fails with "Cannot find module" error with Vercel preset

Repro steps:
1. pnpm create solid with all default options
2. cd solid-project
3. pnpm update
4. Update app.config.ts to:
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({
    server: {
        preset: "vercel",
    }
});

5. pnpm build
6. pnpm start

On my Mac this errors out with "Cannot find module". Something about not finding .output/server/index.mjs, which isn't generated when Vercel is the preset.

vinxi dev works fine. Deployments to Vercel are working fine. Just can't seem to run vinxi start which is a bit of a problem for what I'm trying to accomplish.
Was this page helpful?