When executing npm run build, it shows the following errors:
Failed to compile.
./src/app/(auth)/login/page.tsx
10:31 Error: React Hook "useState" is called in function "page: FC" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks
I think this indicates that the react FC should be Uppercase, so in this case instead of:
const page: FC = () use const Page: FC = ()
When executing
npm run build
, it shows the following errors:I think this indicates that the react FC should be Uppercase, so in this case instead of:
const page: FC = ()
useconst Page: FC = ()
Hope this is an easy fix 😃