Prod image build seems to be broken #75

Closed
opened 2026-05-10 21:05:37 +00:00 by aaperis · 2 comments
aaperis commented 2026-05-10 21:05:37 +00:00 (Migrated from github.com)

Describe the bug

./compose-prod.sh build fails with:

failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

Compilation error earlier in the output log:

./src/app/components/DatasetFiles.tsx:91:9
13.12 Type error: Type 'Dispatch<SetStateAction<number>>' is not assignable to type '(page: string | number) => void'.
13.12   Types of parameters 'value' and 'page' are incompatible.
13.12     Type 'string | number' is not assignable to type 'SetStateAction<number>'.
13.12       Type 'string' is not assignable to type 'SetStateAction<number>'.
13.12 
13.12   89 |         currentPage={currentPage}
13.12   90 |         totalPages={totalPages}
13.12 > 91 |         onPageChange={setCurrentPage}
13.12      |         ^
13.12   92 |       />
13.12   93 |       {currentFiles.length > 0 && (
13.12   94 |         <Table
13.19 Next.js build worker exited with code: 1 and signal: null

Additional context

Part of the same log output:

9.686 Turbopack build encountered 1 warnings:
9.686 ./next.config.ts
9.686 Encountered unexpected file in NFT list
9.686 A file was traced that indicates that the whole project was traced unintentionally. Somewhere in the import trace below, there are:
9.686 - filesystem operations (like path.join, path.resolve or fs.readFile), or
9.686 - very dynamic requires (like require('./' + foo)).
## Describe the bug `./compose-prod.sh build` fails with: ``` failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1 ``` Compilation error earlier in the output log: ``` ./src/app/components/DatasetFiles.tsx:91:9 13.12 Type error: Type 'Dispatch<SetStateAction<number>>' is not assignable to type '(page: string | number) => void'. 13.12 Types of parameters 'value' and 'page' are incompatible. 13.12 Type 'string | number' is not assignable to type 'SetStateAction<number>'. 13.12 Type 'string' is not assignable to type 'SetStateAction<number>'. 13.12 13.12 89 | currentPage={currentPage} 13.12 90 | totalPages={totalPages} 13.12 > 91 | onPageChange={setCurrentPage} 13.12 | ^ 13.12 92 | /> 13.12 93 | {currentFiles.length > 0 && ( 13.12 94 | <Table 13.19 Next.js build worker exited with code: 1 and signal: null ``` ## Additional context Part of the same log output: ``` 9.686 Turbopack build encountered 1 warnings: 9.686 ./next.config.ts 9.686 Encountered unexpected file in NFT list 9.686 A file was traced that indicates that the whole project was traced unintentionally. Somewhere in the import trace below, there are: 9.686 - filesystem operations (like path.join, path.resolve or fs.readFile), or 9.686 - very dynamic requires (like require('./' + foo)). ```
KattisLej commented 2026-05-11 11:08:30 +00:00 (Migrated from github.com)

@aaperis Maybe this is fixed in the PR https://github.com/NBISweden/sda-download-ui/pull/71
because I made some typing fixes

@aaperis Maybe this is fixed in the PR https://github.com/NBISweden/sda-download-ui/pull/71 because I made some typing fixes
KattisLej commented 2026-05-12 11:53:04 +00:00 (Migrated from github.com)

Fixed by PR #71

Fixed by PR #71
Sign in to join this conversation.
No description provided.