javascriptreactjsnext.jsbabeljsbabel-loader

ESLint: Failed to load config "next/babel" to extend from


I am trying to generate build of my next-js app by running "npm run build". but unfortunately i am getting this error everytime. error getting while running npm run build here is my .eslintrc.json file .eslintrc.json and .babelrc .babelrc.


Solution

  • Changing next/babel in .eslintrcto next worked for the warning to disappear. However, in my vscode a bunch of new errors came up related Parsing error : Cannot find module 'next/babel' As a result this answer is a great fit for this question as well : https://stackoverflow.com/a/68193974/13943679