Replies: 12 comments 3 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.
-
I encountered this issue while creating shadcn ui package and next app based on turborepo tailwind template. Following NavOrange's advice, I solved this issue by matching the |
Beta Was this translation helpful? Give feedback.
-
in turborepo should keep root package.json and packages/package.json @types/react version same |
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