hrutik_k
Error: Docker build failed (nextjs)
logs 👇
#12 11.84 79:17 Warning: Using
<img>
could result in slower LCP and higher bandwidth. Consider using <Image />
from next/image
to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
#12 11.84 87:17 Warning: Using <img>
could result in slower LCP and higher bandwidth. Consider using <Image />
from next/image
to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
#12 11.84
#12 11.84 ./app/components/Search/search.tsx
#12 11.84 23:41 Error: React Hook "useState" is called in function "search" 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
#12 11.84
#12 11.84 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
#12 11.90 npm notice
#12 11.90 npm notice New minor version of npm available! 10.2.0 -> 10.3.0
#12 11.90 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0;
#12 11.90 npm notice Run npm install -g [email protected]
to update!
#12 11.90 npm notice
#12 ERROR: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 1
-----
[stage-0 8/10] RUN --mount=type=cache,id=s/d803f2c8-7570-4c34-ae6c-16d3d197ca44-next/cache,target=/app/.next/cache --mount=type=cache,id=s/d803f2c8-7570-4c34-ae6c-16d3d197ca44-node_modules/cache,target=/app/node_modules/.cache CI=false npm run build:11.84 11.84 ./app/components/Search/search.tsx 11.84 23:41 Error: React Hook "useState" is called in function "search" 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 11.84 11.84 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules 11.90 npm notice 11.90 npm notice New minor version of npm available! 10.2.0 -> 10.3.0 11.90 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0; 11.90 npm notice Run
npm install -g [email protected]
to update!
11.90 npm notice
-----
Dockerfile:24
-------------------
22 | # build phase
23 | COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/d803f2c8-7570-4c34-ae6c-16d3d197ca44-next/cache,target=/app/.next/cache --mount=type=cache,id=s/d803f2c8-7570-4c34-ae6c-16d3d197ca44-node_modules/cache,target=/app/node_modules/.cache CI=false npm run build
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c CI=false npm run build" did not complete successfully: exit code: 1
Error: Docker build failed9 replies