Replies: 10 comments 2 replies
-
managed to solve it by changing the last line to: return createPortal(React.createElement('div', null, children), modalElem) |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and solved the type issues using: |
Beta Was this translation helpful? Give feedback.
-
Why is this closed? |
Beta Was this translation helpful? Give feedback.
-
same issue on tons of shadcn components |
Beta Was this translation helpful? Give feedback.
-
I just ran into this issue upgrading |
Beta Was this translation helpful? Give feedback.
-
In my case:
|
Beta Was this translation helpful? Give feedback.
-
Faced same problem after updating dependencies. rm -rf node_modules
bun install |
Beta Was this translation helpful? Give feedback.
-
This seems to be caused by @types/react 13.3.4 or 13.3.5. I think they added a secret "experimental" key that is a bigint and it rippled in bad ways. DefinitelyTyped/DefinitelyTyped@44c0d65 See discussion here: facebook/react#24580 |
Beta Was this translation helpful? Give feedback.
-
This looks like duplicate versions for |
Beta Was this translation helpful? Give feedback.
-
Same issue here. Deleting |
Beta Was this translation helpful? Give feedback.
-
Summary
I had an error recently that I have no clue about how to solve. I'm not working with bigints at all. It's in my Portal component. I didn't have this error before updating to nextjs
14.2.2
.How to solve this?
Additional information
Diagnostics:
Type 'bigint' is not assignable to type 'ReactNode'. [2345]
Example
https://github.com/waikoo/thrifty
Beta Was this translation helpful? Give feedback.
All reactions