Replies: 3 comments 5 replies
-
That's weird. Silly question, have you got @types/three installed? |
Beta Was this translation helpful? Give feedback.
-
so odd, attachArray and attachObject are not part of r3f any longer. maybe delete node_modules for once, i think i had something like this in the r3f examples dir when switching between the branches. also keep in mind drei is not 100% compatible yet (due to attach being different). most primitives should work but everything that has either attachObject or attachArray or attachFns will not work. drei being at 8 now was just because it moved up with the current threejs version but it's unrelated to r3fv8. |
Beta Was this translation helpful? Give feedback.
-
In case anyone else comes across this, it's resolved since I updated to the latest version of R3F (version 8) and Drei (version 9). |
Beta Was this translation helpful? Give feedback.
-
This morning I updated to R3F @8 beta 04 and then tried to build my project. It failed with an error regarding missing props on many Drei components. I'm fairly sure that I didn't change anything else and these errors didn't exist on Friday when I last was working on this.
So basically all optional props seem to be marked as required.
Initially I thought this must be caused by the upgrade so I tried updating Drei too, from 7.24.0 to 8.0.0. This didn't change anything though, so I made a sandbox. And now I'm very confused because the error seems to remain for any version of R3F and Drei. You can try out the sandbox here:
https://codesandbox.io/s/condescending-river-lk8hr
Codesandbox is more lenient than my project so it does run successfully despite the error. My project won't build at all until I fix it.
If I select the lightbulb and "add missing attributes":
Then I get all this junk:
If I do the same on my own project (now with Drei @8.0.0 and R3f 8beta 04) I only get a couple of props added:
With these two props added to Box (and also on the Text and Detailed components used elsewhere) the project builds successfully.
Does anyone have an idea what's going on here?
Beta Was this translation helpful? Give feedback.
All reactions