Production build fails #98
Labels
No labels
backend
bug
CI
dependencies
design
documentation
duplicate
enhancement
frontend
github_actions
good first issue
help wanted
invalid
javascript
question
refactoring
security
tooling
UX
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
NBIS/sda-download-ui#98
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
The production build fails
Steps to reproduce
Try building the production, the production doesn't build and gives:
./src/app/components/Pagination.tsx:83:17
11.16 Type error: Type '{ children: Element[]; type: "button"; className: string; onClick: () => void; disabled: boolean; autoComplete: string; }' is not assignable to type 'DetailedHTMLProps<ButtonHTMLAttributes, HTMLButtonElement>'.
11.16 Property 'autoComplete' does not exist on type 'DetailedHTMLProps<ButtonHTMLAttributes, HTMLButtonElement>'.
11.16
11.16 81 | onClick={() => onPageChange(1)}
11.16 82 | disabled={isFirstPage}
11.16 > 83 | autoComplete="off"
11.16 | ^
11.16 84 | >
11.16 85 | <<
11.16 86 | First
11.22 Next.js build worker exited with code: 1 and signal: null
Environment
Production
Expected behavior
Additional context
This issue would be valuable as well #78
Hi, I can take a quick look at this.
The failure looks focused:
autoCompleteis being passed to abuttonelement inPagination.tsx, and TypeScript rejects it during the production build.I can either:
If you prefer volunteer-only contributions, no problem. I can still point out the likely fix briefly.