-
Notifications
You must be signed in to change notification settings - Fork 457
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
Issues with @babel/eslint-parser #6
Comments
TL/DR: Add I was getting the exact same error. I googled a bit, and based on what I found, I tried adding
I found this blog post describing the same thing. That post recommended this: install
But that's weird because aren't we telling ESLint in
But it turned out that the most important thing was to add
If you have that, you don't even need @derekbunch, I hope that eliminates all of your red squiggly lines, like it did for me. What's funny is, why wasn't this happening to @btholt in the React v6 course (published May 4, 2021)? Maybe something changed between then and now. Very mysterious, and pretty frustrating! |
I ran into the same problem. Here's another simple fix:
Here's how it should look:
Your
Close #6 |
Added requireConfigFile: false to fix babel error with react-router-dom. Fixes issue btholt#6
I have to agree that @soyelmoreno's fix is still relevant almost six months later. Adding |
Another two cents, for the sake of clarity: I added
basically, this package: @babel/eslint-plugin also: |
I keep getting the following error when I try to enable
@babel/plugin-proposal-class-properties
in my.babelrc
and@babel/eslint-parser
in my.eslintrc.json
.I've tried adding
requireConfigFile: false
to myeslintrc.json
but then eslint can't find my.babelrc
. Both files are in the root directory of my project. Cant figure out what im doing wrong. I've confirmed that my.eslintrc.json
,.babelrc
, andpackage.json
are identical to the ones in 09-managing-state-in-class-components. I'm just going to ignore the error to get through the course as everything still works, but any help on what I might be doing wrong would be greatly appreciated.My
.eslintrc.json
:My
.babelrc
:My
package.json
:The text was updated successfully, but these errors were encountered: