Skip to content

Instantly share code, notes, and snippets.

@nipunarora
Created May 5, 2024 19:59
Show Gist options
  • Save nipunarora/e49694c81778c847b71bb919ebac7ad5 to your computer and use it in GitHub Desktop.
Save nipunarora/e49694c81778c847b71bb919ebac7ad5 to your computer and use it in GitHub Desktop.
Turtle frontend error
docker compose up
[+] Building 13.7s (18/39) docker:desktop-linux
=> [development internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 911B 0.0s
=> [production internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 911B 0.0s
=> [development internal] load metadata for docker.io/library/node:20-alpine 0.2s
=> [build internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 911B 0.0s
=> [development internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [build internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [production internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [development internal] load build context 0.1s
=> => transferring context: 21.59kB 0.1s
=> CACHED [development development 1/5] FROM docker.io/library/node:20-alpine@sha256:7a91aa397f2e2dfbfcdad2e2d72599f374e0b0172be1d86eeb73f1d33f36a4b2 0.0s
=> [build internal] load build context 0.3s
=> => transferring context: 11.75MB 0.3s
=> [production internal] load build context 0.3s
=> => transferring context: 11.75MB 0.3s
=> CACHED [development development 2/5] WORKDIR /usr/src/app 0.0s
=> CACHED [development development 3/5] COPY --chown=node:node package*.json ./ 0.0s
=> CACHED [development development 4/5] RUN npm i 0.0s
=> CACHED [development development 5/5] COPY --chown=node:node . . 0.0s
=> CACHED [development build 4/7] COPY --chown=node:node --from=development /usr/src/app/node_modules ./node_modules 0.0s
=> CACHED [development build 5/7] COPY --chown=node:node . . 0.0s
=> ERROR [development build 6/7] RUN npm run build 13.4s
------
> [development build 6/7] RUN npm run build:
0.507
0.507 > turtle-cruise@0.1.0 build
0.507 > next build
0.507
0.862 Attention: Next.js now collects completely anonymous telemetry regarding usage.
0.863 This information is used to shape Next.js' roadmap and prioritize features.
0.863 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
0.863 https://nextjs.org/telemetry
0.863
0.897 ▲ Next.js 14.2.2
0.897
0.943 Creating an optimized production build ...
3.028 ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
3.028 Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
7.930 ⚠ For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'npm i sharp', and Next.js will use it automatically for Image Optimization.
7.930 Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
12.02 ✓ Compiled successfully
12.02 Linting and checking validity of types ...
13.29
13.29 Failed to compile.
13.29
13.29 ./app/page.tsx
13.29 22:47 Error: React Hook "useState" is called in function "page" 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
13.29
13.29 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
13.29 npm notice
13.29 npm notice New minor version of npm available! 10.5.0 -> 10.7.0
13.29 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
13.29 npm notice Run `npm install -g npm@10.7.0` to update!
13.29 npm notice
------
failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment