-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: react/prop-types error detected on linux but won't on windows #3702
Comments
Can you confirm on the command line that this behavior occurs (vscode isn’t the source of truth), and that both envs have the same deps at the same versions installed on disk? |
both files location on |
The bug is in all Linux versions, mas ? |
@fauzanashari what is |
yes nextjs this is nextjs convention to create dynamic slug url https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes |
interesting - i wonder if that's the issue. I'll try to create a test case to rule that out. |
Is there an existing issue for this?
Description Overview
windows detect
react/prop-types
error for only client component, and linux detect error from server and client componentwindows:
linux:
I am develop nextjs 13 app with server component & client component without defining propTypes for both, but
npm run lint
only the detect error for client component. I cloned same code base on Fedora 38 and unlike windownpm run lint
detect error for both client and server componentnpm run lint
npx next build
Expected Behavior
It should be output same error both windows or linux, since many developers use windows as dev env and linux as production.
windows:
linux:
eslint-plugin-react version
v7.33.2
eslint version
v8
node version
v18.19.1
The text was updated successfully, but these errors were encountered: