Problem with babel-esLint: Parsing error: require() of ES Module

This is probably happening because you, like me, were using the old babel parser. Package babel-eslint has been deprecated since March of 2020.
The package was migrated to new repo, if you want to know more, I recommend you check Babel git.

Just change and install or update to the latest parser packaged in .eslintrc.js:

Old .eslintrc.js:

module.exports = {
  parser: 'babel-eslint',
  ...
};

New .eslintrc.js

module.exports = {
   parser: '@babel/eslint-parser',
   ...
};

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)