-
Notifications
You must be signed in to change notification settings - Fork 703
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
TS: All props required on Box, Circle, etc. #403
Comments
Please provide a repro of the issue so we can look at it, a sandbox will be suffice. |
https://codesandbox.io/s/nervous-lovelace-xte95?file=/src/App.tsx |
Thanks for the report, there's a patch being released now. |
🎉 This issue has been resolved in version 5.1.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I feel bad commenting on an already closed issue, but I got the same problem using next.js. While creating the following sandbox: https://codesandbox.io/s/nostalgic-mclean-e02lt?file=/pages/index.tsx Here are the versions I use: |
Looking at the link you've provided @Flo2410, I can't see an issue. |
Hi @Flo2410 I am having the same issues... Have you fixed it? How? |
hey @Flo2410 ...I have fixed it. Just install |
Hi @juuyan OMG, Thanks. How did I not come up with this solution?! |
Had the same problem. Saw the drei library came with types, so figured it should work out of the box. But only after installing |
three
version: 0.128.0@react-three/fiber
version: 6.2.0@react-three/drei
version: 5.1.6node
version: 14.15.4yarn
version: 1.22.10Problem description:
When using any predefined shape like
Box
orCircle
, I get a TypeScript error saying that all props are required. The error shows up in intellisense and actual TS compilation (via CRA).Relevant code:
Suggested solution:
Don't know, I really just started with a tutorial, this is my first time playing around with Three.js and React.
The text was updated successfully, but these errors were encountered: