Replies: 3 comments
-
You'll need to update Drei to v9 to use the unified attach API. |
Beta Was this translation helpful? Give feedback.
0 replies
-
got it - what about for |
Beta Was this translation helpful? Give feedback.
0 replies
-
TypeScript is telling you that because of old or incompatible types. If upgrading your versions doesn't help, I'd raise an issue there to update their TS definitions or usage of attach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've just upgraded r3f from
v7.0.15
tov8.0.8
I'm also using @react-three/drei v7.11.0 and @react-three/flex v0.7.0 pretty extensively.
With this upgrade to r3f v8, if I don't define
attachArray={undefined} attachObject={undefined}
to many components in those libs, such as<Text />
and<Box />
or<Flex />
I get a typescript error:Type '{ children: string | null; color: string; outlineColor: string; outlineWidth: number; anchorX: "center"; anchorY: "middle"; font: string; fontSize: number; visible: boolean | undefined; }' is missing the following properties from type 'Pick<Omit<ExtendedColors<Overwrite<Partial<Mesh<BufferGeometry, Material | Material[]>>, NodeProps<Mesh<BufferGeometry, Material | Material[]>, typeof Mesh>>>, NonFunctionKeys<...>> & { ...; } & EventHandlers & { ...; }, "name" | ... 110 more ... | "debugSDF">': attachArray, attachObject
This happens for
Box
Flex
Text
andBillboard
among othersFor example this gives that error:
This does not:
I'm using typescript v4.3.5
Beta Was this translation helpful? Give feedback.
All reactions