-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug]: @fluentui/react-motion: Invalid child element. #33404
Comments
@anishkumar127 Please provide a repro link so I can take a look. StackBlitz is a good way to set this up. |
even now i'm not able to install |
This is because React 19 will be supported in the future. @tudorpopams and @dmytrokirpa for visibility. |
@spmonahan it doesn't work even with React 18 and Next.js 15. So this issue is not related to React 19. The problem is in fluentui/packages/react-components/react-motion/library/src/utils/getChildElement.ts Line 8 in b5d571f
All components are |
This is how I workaround this (dirty hack). Basically I had to replace in package.json I added this script: src/tools/getChildElement.js:
|
@spmonahan any update on this? Did you guys manage to check the possible solution? Next.js and SSR are the hot topic. It would be great seeing Fluent UI compatible with the top notch technologies. |
@koltyakov , I was just triaging the issue to get it into the correct backlog so no further updates from me 🙂. Given the season I wouldn't expect anyone to pick this up before January. |
Component
Drawer
Package version
^9.56.3
React version
19.0.0-rc-66855b96-20241106
Environment
Current Behavior
Crashing application
Error: @fluentui/react-motion: Invalid child element. Motion factories require a single child element to be passed. That element element should support ref forwarding i.e. it should be either an intrinsic element (e.g. div) or a component that uses React.forwardRef().
Expected Behavior
it's should work.
Reproduction
don't have the link
Steps to reproduce
Install next.js 15.
Use the fluent ui 9 latest version
and try to use the drawer
Are you reporting an Accessibility issue?
None
Suggested severity
Urgent - No workaround and Products/sites are affected
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: