Closed
Description
What version of Next.js are you using?
11.1.0
What version of Node.js are you using?
v15.2.1
What browser are you using?
Chrome
What operating system are you using?
macOSv11.4
How are you deploying your application?
Custom deployment
Describe the Bug
I upgraded from [email protected] to [email protected]. Then I followed the guide for extending @next/eslint-plugin-next
my project already has .eslintrc
setup.
Here's my .eslintrc
"extends": ["airbnb-typescript-prettier", "plugin:@next/next/recommended"],
my next.config.js
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
})
return config
},
distDir: **'build',
The bug
when I run yarn lint
I get this error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Not sure what's causing it. Any idea?
Expected Behavior
Should be able to run yarn lint
without errors
To Reproduce
I'm not sure how to reproduce in a different repo.