You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Receiving Expression produces a union type that is too complex to represent. in VS-Code and when using npm run build with Next.js. npm run dev works fine, of course.
This only happens when you add child elements to the NavDrawer component.
I reproduced this issue with the example from the wiki. Again it only works fine with npm run dev, not npm run build.
Component
Nav (Preview)
Package version
9.56.8
React version
18.3.1
Environment
Current Behavior
Expression produces a union type that is too complex to represent.
in VS-Code and when usingnpm run build
with Next.js.npm run dev
works fine, of course.npm run dev
, notnpm run build
.So this produces no error:
But this does:
Or just this does as well:
So adding any child does this.
Expected Behavior
Being able to add children.
Reproduction
https://stackblitz.com/edit/vqvvdnhn?file=src%2Fexample.tsx
Steps to reproduce
npm run build
Are you reporting an Accessibility issue?
None
Suggested severity
High - No workaround
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: