Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 📝 update view components examples to avoid codegen error #559

Merged

Conversation

DavideSegullo
Copy link
Contributor

I was playing a little bit with new HybridView feature, but if I follow the tutorial and use the current example code, I'll get this error when i run bun nitro-codegen:

 ❌  Failed to generate spec for CameraView! Error: Props cannot be null! CameraView<...> (HybridView) requires type arguments.
 ❌  No specs found in Camera.nitro.ts!

This PR just updated the example code to extends correct types to avoid this kind of error

Copy link

vercel bot commented Feb 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nitro-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 22, 2025 0:59am

@mrousavy
Copy link
Owner

Nice catch thank you!

@mrousavy mrousavy merged commit 1f38da5 into mrousavy:main Feb 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants