$ vinxi build && vinxi start
...
ERROR Client-only API called on the server side. Run client-only code in onMount, or conditionally run client-only component with <Show>. 6:56:47 PM
at notSup (.output/server/node_modules/solid-js/web/dist/server.js:1141:9)
at .output/server/chunks/runtime.mjs:8590:10
at ModuleJob.run (node:internal/modules/esm/module_job:271:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
at async Object.run (/home/james/.local/share/pnpm/global/5/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/vinxi/bin/cli.mjs:278:7)
at async runCommand (/home/james/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:316:16)
at async runCommand (/home/james/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:307:11)
at async runMain (/home/james/.local/share/pnpm/global/5/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:445:7)

Expected behavior 🤔
vinxi build and vinxi start should work just like package.json:
"scripts": {
"build": "vinxi build",
"start": "vinxi start"
},
OR log a warning or error..
Steps to reproduce 🕹
Steps:
- https://docs.solidjs.com/solid-start/getting-started
- Edit
src/app.tsx and change <a href="/">Index</a> to <A href="/">Index</A>, add import
vinxi build && vinxi start # builds but crashes when it goes to start
npm run build && npm run start # everything works
Context 🔦
Get rid of an incredible difficult bug to find.
Your environment 🌎
Duplicates
Latest version
Current behavior 😯
Expected behavior 🤔
vinxi buildandvinxi startshould work just like package.json:OR log a warning or error..
Steps to reproduce 🕹
Steps:
src/app.tsxand change<a href="/">Index</a>to<A href="/">Index</A>, add importvinxi build&&vinxi start# builds but crashes when it goes to startnpm run build&&npm run start# everything worksContext 🔦
Get rid of an incredible difficult bug to find.
Your environment 🌎
Duplicates
Latest version
Current behavior 😯