Next.js Discord

Discord Forum

Component Error

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Failed to compile.
./src/pages/user/allchains.tsx:148:6
Type error: 'HoldersOnlyChecker' cannot be used as a JSX component.
Its return type 'string | number | true | Iterable<ReactNode> | PromiseLikeOfReactNode | Element | null' is not a valid JSX element.
Type 'string' is not assignable to type 'ReactElement<any, any>'.
146 |
147 | return (
148 | <HoldersOnlyChecker>
| ^
149 | <Grid
150 | templateColumns={{ base: '1fr', lg: 'minmax(100, 800px) auto' }}
151 | gap={{ base: 3, lg: 6 }}
 ELIFECYCLE  Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1

0 Replies