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
Compiler error on component preview page 'react/jsx-runtime' with compilers/react-typescript #3745
Comments
same issue here, and I did not use Typescript :( |
Hi, Specs:
Is there a workaround? Appears to have started over a week ago. |
I'm seeing the same thing. Here's a public example: |
:)) it seems too many bugs need to fix before this |
This is a pretty big bug and stopping new projects in react |
Yes, it completely upended a project I started for a new job as senior frontend manager. I made the proposal with a bit demo 2 weeks prior. When development started I immediately hit this critical error blocking my path. I’m now a day away from completing my own version of bit. So I guess there was a silver lining, but hugely frustrating nonetheless. |
Yes, and no one care about this? |
I made a compiler for my own repo that works for me. It is at https://github.com/j718/j718.envs. You can install with Have not tested on a ton of cases but worked on my own components. I hope it helps! |
For me, I just precompiled the React code with an older version and the copy pasted the code for bit to compile. |
Does this just need a quick PR to patch dependencies, or are there design issues holding back the upgrade? I'll see if I can squeeze in a 4h block tomorrow to get this feature working. Seems like a good investment. Moving on if it takes longer than this. |
I was also facing this issue and I wasn't using Typescript. Downgrading the React compiler from version |
Yup, I found it was fixable locally by reverting upgrade to --latest, but I didn't spend any time trying to narrow it down. Thanks for the tip! |
Followed the tutorial which installed |
Same here, we are exploring bit.dev for the first time, not a great start :)
|
Can't thank you enough tahins ..., |
Using Typescript + React 17.0.1 moving from "react-typescript@4.0.0" to "react-typescript@3.0.0" worked for me
|
@DavLac Thanks it worked for me! |
Hi Sorry for the late response here. Bit v15 should resolve most React-TS issues and improve workflow drastically. We'll start rolling out v15 of Bit this week, please reach out to me privately on the public slack community for a sneak peek and getting early access to it. |
@itaymendel - I am now experiencing this issue. Where are you at on Bit v15? |
@itaymendel - I am also experiencing this one just now. Using TypeScript compiler. |
I discovered my issue was using react-typescript compiler 4.0.0 while only using React 16 in my project. 4.0.0 required React 17. |
Describe the bug
I have created an component with create-react-app and
bit.envs/compilers/react-typescript@3.1.65
. I try to preview after publish but got error'react/jsx-runtime'
can't resolve.Steps to Reproduce
Expected Behavior
I would expect a preview to appear with no compilation error.
Screenshots, exceptions and logs
If applicable, add screenshots, exceptions, and logs to help explain your problem.
Specifications
The text was updated successfully, but these errors were encountered: