said7388 / developer-portfolio

Software Developer Portfolio Website built with next.js and tailwind CSS that helps you showcase your work and skills as a software developer.
https://abusaid.me
1.34k stars 547 forks source link

Error Npm run Build #21

Closed thiagolopes-dev closed 3 months ago

thiagolopes-dev commented 4 months ago

I am using the npm run build command to build the dist folder, as indicated in another edition by you, and it has this output and does not generate any build folder. What can it be?


Creating an optimized production build ... ⚠ 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. Read more: https://nextjs.org/docs/messages/sharp-missing-in-production Compiler server unexpectedly exited with code: null and signal: SIGTERM ⚠ 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. Read more: https://nextjs.org/docs/messages/sharp-missing-in-production Compiler client unexpectedly exited with code: null and signal: SIGTERM ✓ Compiled successfully ✓ Linting and checking validity of types
✓ Collecting page data
✓ Generating static pages (6/6) ✓ Collecting build traces
✓ Finalizing page optimization

Route (app) Size First Load JS ┌ ○ / 89.2 kB 180 kB ├ ○ /_not-found 882 B 85.2 kB ├ ○ /blog 174 B 91.3 kB └ λ /blog/[slug] 137 B 84.4 kB

○ (Static) prerendered as static content λ (Dynamic) server-rendered on demand using Node.js


And congratulations on the work, I mentioned the credits to you in my repository.

said7388 commented 3 months ago

By default, Next.js does not generate a traditional "build" folder like some other frameworks. Instead, it generates a ".next" folder.

thiagolopes-dev commented 3 months ago

I got it, thanks