React 19 RC throws when encountering "fake" React elements. JSX likely needs to be changed significantly to work with future versions of React, but this unblocks anyone using fbt in open source. However, now fbt only works in React 19, and I'm not sure how to actually make it work both in React 18 and 19 at the same time, though.
I also had to update the .gitignore. One dist folder was missing from .gitignore, and it also doesn't support comments so node_modules weren't actually ignored.
Summary
React 19 RC throws when encountering "fake" React elements. JSX likely needs to be changed significantly to work with future versions of React, but this unblocks anyone using fbt in open source. However, now fbt only works in React 19, and I'm not sure how to actually make it work both in React 18 and 19 at the same time, though.
I also had to update the
.gitignore
. Onedist
folder was missing from.gitignore
, and it also doesn't support comments sonode_modules
weren't actually ignored.Test plan
I patched this into my code and it seems to work.