-
Notifications
You must be signed in to change notification settings - Fork 64
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
Not working with create-react-app #86
Comments
It should definitely work with Babel 7. What does your .babelrc look like? 🤷♂️ |
Here is my .babelrc } Here is babel configuration in webpack config file .
|
Oh right, those look like eslint errors - you'll have to either use https://github.com/vkbansal/eslint-plugin-jsx-control-statements or turn it off. |
I have solved my problem. because eslintconfig |
could you explain how to config the "eslintConfig" node in package.json after I do eject in a create-react-app project? "eslintConfig": { |
@lousongtao I deleted node_modules and I re-install all packages, and it worked with that same configuration |
Looks like a configuration issue which has been solved. Closing... |
I am using create-react-app . I have ejected create-react-app using npm run eject.Now i have all the webpack config files. As mentioned in docs i have added this line
"plugins": ["jsx-control-statements"]
But it doesn't trans pile jsx-control-statement. I am using babel version 7. Is it related to babel version ?The text was updated successfully, but these errors were encountered: