Troubleshooting
A few places to start when the canvas doesn't look like your app.
- My components don't appear
- Check that your
*.canvas.tsxfiles export no-argument React components. Components that need props should be wrapped in an example that supplies them. See Add a component. - A card is missing styles or fonts
- Cards don't run inside your app's shell, so import the same global CSS your app uses in
.canvas/setup.tsx, and load fonts where the canvas sees them. See Canvas setup and Fonts. - A card is empty or shows an error
- It may need a provider, data or a signed-in user. Add what it needs in
.canvas/setup.tsx. If the card offers Fix or Ask agent, try that too. - A page isn't on the canvas
- Check
pagesin.canvas/config.json. Routes with dynamic segments may not resolve; show their content in a component card instead. See Pages.
More fixes are in the troubleshooting doc.