My contributions to the project on Github have resulted in successful builds after making three key changes:
- I added
output: 'export'
to the next config, a modification not present in the repository.
- In
src/app/page.tsx
, I adjusted the casing in the import statement for the Intro
component to: import Intro from "@/components/Intro";
(Alternatively, renaming the file to intro.tsx would also suffice)
- I corrected the mode resolution in tsconfig from bundler to node using the line:
"moduleResolution": "node",
<-- this adjustment addressed an issue related to splidejs
Upon completion, the build yielded the following results:
$ npm run build
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f4849b8680929b989d9bb4c4dac5dac4">[email protected]</a> build
> next build
▲ Next.js 14.2.14
Creating an optimized production build ...
✓ Compiled successfully
✓ Linting and checking validity of types
✓ Collecting page data
✓ Generating static pages (4/4)
✓ Collecting build traces
✓ Finalizing page optimization
Route (app) Size First Load JS
┌ ○ / 29.6 kB 117 kB
└ ○ /_not-found 875 B 88.2 kB
+ First Load JS shared by all 87.3 kB
├ chunks/117-9c48060295ddae61.js 31.7 kB
├ chunks/fd9d1056-5af6eea51486f846.js 53.7 kB
└ other shared chunks (total) 1.95 kB
○ (Static) prerendered as static content