Product description #27
Annotations
6 errors and 2 warnings
app/products/[id]/page.jsx#L10
React Hook "useTheme" is called in function "product" 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)
|
app/products/[id]/page.jsx#L11
React Hook "useProducts" is called in function "product" 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)
|
app/products/[id]/page.jsx#L12
React Hook "useState" is called in function "product" 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)
|
app/products/[id]/page.jsx#L13
React Hook "useState" is called in function "product" 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)
|
app/products/[id]/page.jsx#L16
React Hook "useEffect" is called in function "product" 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)
|
build-image
buildx failed with: ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
|
app/products/[id]/page.jsx#L16
React Hook useEffect contains a call to 'setProduct'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [products, params.id] as a second argument to the useEffect Hook (react-hooks/exhaustive-deps)
|
app/products/[id]/page.jsx#L29
Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images (jsx-a11y/alt-text)
|