-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Support for the experimental syntax 'jsx' isn't currently enabled (45:5): #11700
Comments
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Pinging to keep alive. |
Having the same issue on mac after I upgraded to Create React App, it's only happening while running the unit tests. But it's not happening because of a dependency, it happens within the app code. |
@Tordek @FezVrasta |
#11928 (includes a workaround I found) |
@FezVrasta |
@Tordek Did you ever resolve this? |
No, I had to copy the components into the new project. Very much against DRY principle. |
@keithpickering no, the issue remains and can be reproduced as per the steps in the OP. |
I have the same issue |
i'm not that happy to join this club 🥇
|
If anyone missed it, I provided a workaround for this issue here #11928 (comment) |
Hi, is there a working solution for this? The workaround above does not work for me, I am using react-native-maps which uses fragments and triggers the error. |
I'm hitting this issue too, I'm however on Linux and am not using
This is from a sample project https://github.com/IPWright83/pnpm-monorepo. I don't understand why this is happening now however, as it wasn't an issue when I set the project up originally. It's easy to reproduce in there by running:
I have managed to workaround it, but it's not nice. I have to, add the
|
bump, same for Mac. @FezVrasta it wasn't viable for me. |
Same issue happening for me when I try to add a folder with few components from "Project B" to my "Project A" as soft links using "mklink" command. None of the components in this folder has any dependency outside the folder. So their is no possibility that it is trying to refer something from "Project B" which is not available in "Project A" solution I tried creating .babelrc and babal.config.js in different different formats and none worked. Finally I had to copy paste the files itself directly after which it is working. |
bump, still haven't been able to resolve this |
I'm having the same issue as well. I did create the create-react-app using typescript template, though. |
Same issue. |
I am having the same issue (on Ubuntu) and @space-cadett 's answer I don't think is the solution because this is not about class properties. |
What has Class properties do with file extension ? |
Actually... that helped me. Odd. |
Getting the same error while importing files from a dependency package where files have the extension |
Same error. Any update ? |
I'm also having this same issue. the workaround didn't work for me. Can someone who's a contributor please address this issue and offer example code solution |
I am also hitting the same problem with gatsby. Any help is appreciated.
|
The JSX syntax extension is not currently enabled
The esbuild loader for this file is currently set to "js" but |
const routes = [{ |
Still waiting for a solution on this issue |
Also experiencing the same issue |
Also having this problem. |
having the same problem with another React package linked in cra |
I had the same issue. {
"name": "react-floating-mailbox",
"version": "1.0.3",
"description": "...",
"main": "dist/index.js", // "dist/index.js" not just "index.js"
} |
Same issue occur after trying so many solutions no result found |
I have resolved this issue you can see my code from github https://github.com/Uttam146/uttam_rawat-popups/tree/master/src/package |
Also having the same issue with another package. |
@Uttam146 This worked until babel couldn't parse a css file being imported. I added "type": "module" to package.json but still cannot parse. |
I am having this issue too. I cannot get google-map-react to work after two days of messing around with typescript configs and babel configs |
Same issue persists here. All this time and not anything definitive from CRA? |
solved by following jest docs npm install --save-dev react-test-renderer after which the |
I solved the problem with a custom transformer -> https://jestjs.io/docs/tutorial-react#custom-transformers |
### Thank you for your email
Your query has been received. We will reply back shortly. If you have any
additional information, please reply to this mail.
Reference: None None
This is an automatically generated reply
|
Hello, I am experiencing the same issue: I don't want to eject CRA and build out a babel config, bc that's why I like CRA. Is there a fix for this or is CRA no longer supported? |
Can you share your config? I have tried a few the fixes here and they are not working for my app. |
Did you use CRA? Did you eject? What are we looking at? Can you give more info? I would love to find a fix for this! |
Steps to reproduce:
.js
extension but usesjsx
syntax.Result:
However the offered solution does not work because
react-scripts/options/webpack.config.js
disables thebabelrc
option.On the other hand, this problem only seems to exist on Windows; it works fine in Linux.
The text was updated successfully, but these errors were encountered: