SolidStart "vinxi build" command failed in CI
SolidStart runs vinxi build under the hood. It fails when app.config.ts is invalid, an entry file (entry-server/entry-client) is missing, or a router definition throws during the build graph.
What this error means
A npm run build step calling vinxi build stops with a config or router error, or "vinxi: command not found" if vinxi was never installed.
vinxi
$ vinxi build
ERROR Nitro build error
Error: Failed to load app config from app.config.ts
Cannot read properties of undefined (reading 'router')Common causes
An invalid app.config.ts
A malformed defineConfig or a bad router/server field makes vinxi fail to load the app config.
vinxi is not installed on the runner
A partial install or a missing dependency leaves no vinxi binary, so the build script exits 127.
How to fix it
Validate app.config and install cleanly
- Run
npm ciso vinxi and SolidStart are present. - Fix
app.config.tsto a validdefineConfigfrom@solidjs/start/config. - Re-run
npm run buildlocally to confirm before pushing.
Terminal
npm ci
npm run buildKeep the SolidStart build script
Use the framework build script so vinxi runs with the right entrypoints.
package.json
{
"scripts": { "build": "vinxi build" }
}How to prevent it
- Use
npm ciso vinxi is always installed in CI. - Keep
app.config.tsvalid and typed withdefineConfig. - Build locally before pushing to catch config errors.
Related guides
SolidStart "@solidjs/start" adapter not set for the target in CIFix SolidStart builds that fail or deploy wrong in CI because the @solidjs/start server preset does not match…
SolidJS "Cannot find module 'solid-js'" in CIFix "Cannot find module 'solid-js'" in CI - the core Solid package is not installed in the runner environment…
SolidStart env var undefined without VITE_ prefix in CIFix SolidStart client env vars that are undefined in CI - Vite only exposes variables prefixed VITE_ to clien…