question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[react] @babel/eslint-parser expects presence of babel.config.js

See original GitHub issue

solve by:

if project is CRA:

  • adding babel presets of CRA

if project is Next:

  • next/babel if next is present

otherwise:

  • try to detect babel.config.js / .babelrc / babel.config.json
  • if missing, warn

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
axelboccommented, Aug 30, 2021

🚀 🚀 🚀

1reaction
axelboccommented, Aug 30, 2021

The error comes from linting .eslintrc.js itself, which your command skips (eslint src), but it also concerns any other JS file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lint Parsing error: Cannot find module 'babel.config.js'
I couldn't find an answer to this question however, I found a workaround: You can add the babel configuration on the .eslintrc body...
Read more >
@babel/eslint-parser | Yarn - Package Manager
Intro. Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain...
Read more >
eslint-plugin-jsdoc - npm
Inline ESLint config within @example JavaScript is allowed (or within @default , etc.), though the disabling of ESLint directives which are not ...
Read more >
prettier ignore specific rule | The AI Search Engine You Control
Even though Prettier is configured in your ESLint configuration file as an ... that is mentioned in the error (e.g. babel.config.js ), you...
Read more >
SSC600 Open Source Software Notice | ABB
babel/eslint-parser ... hoist-non-react-statics. 3.3.2. BSD-3-Clause hoopy. 0.1.4. MIT hpack.js ... source, and configuration files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found