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.
Changing next/babel
in .eslintrc
to 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