Cannot find module '~/components/DefaultCatchBoundary'

Rookie issue, probably, but I can't figure out what I'm doing wrong here. I followed the instructions at https://tanstack.com/start/latest/docs/framework/react/quick-start carefully, but when I serve the project, I get this error:

c:\temp\start-basic> npm run dev

dev
vinxi dev

vinxi v0.5.3
vinxi starting dev server

♻️ Generating routes...
✅ Processed routes in 367ms

➜ Local: http://localhost:3000/
➜ Network: use --host to expose

13:41:52 [vite] (ssr) Error when evaluating SSR module $vinxi/handler/ssr: Cannot find module '~/components/DefaultCatchBoundary' imported from 'C:/temp/start-basic/src/routes/__root.tsx'
at fetchModule (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:46813:19)
at RunnableDevEnvironment.fetchModule (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:47904:12)
at fetchModule (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:47858:21)
at handleInvoke (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:38973:28)
at EventEmitter.listenerForInvokeHandler (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:39046:25)
at EventEmitter.emit (node:events:520:28)
at Object.send (file:///c:/temp/start-basic/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:25190:40)
at Object.invoke (file:///c:/temp/start-basic/node_modules/vite/dist/node/module-runner.js:621:34)
at Object.invoke (file:///c:/temp/start-basic/node_modules/vite/dist/node/module-runner.js:682:34)
at SSRCompatModuleRunner.getModuleInformation (file:///c:/temp/start-basic/node_modules/vite/dist/node/module-runner.js:1205:94)


Windows 10 64b, NodeJS 20 or 22
Impatient? If you're impatient, you can clone and run the example right away with the following commands: bash npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic cd start-bas...
Quick Start | TanStack Start React Docs
Was this page helpful?