[GH-ISSUE #310] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. make: *** [Makefile:6: assets] Error 1 #433

Open
opened 2026-03-07 22:15:24 +03:00 by kerem · 1 comment
Owner

Originally created by @enzshew on GitHub (Aug 10, 2023).
Original GitHub issue: https://github.com/hibiken/asynqmon/issues/310

sudo make build
[sudo] password for erlangga:
cd ./ui && yarn build --modules-folder /ui/node_modules
yarn run v1.22.19
$ react-scripts build --modules-folder /ui/node_modules
Creating an optimized production build...
Failed to compile.

TS2786: 'Modal' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ModalProps, any, any> | null' is not a valid JSX element.
Type 'Component<ModalProps, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<ModalProps, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/erlangga/asynqmon/ui/node_modules/@types/react-redux/node_modules/@types/react/ts5.0/index").ReactNode'.
235 |
236 |

237 | <Modal
| ^^^^^
238 | open={activeEntryId !== ""}
239 | onClose={() => setActiveEntryId("")}
240 | className={classes.modal}

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [Makefile:6: assets] Error 1

Originally created by @enzshew on GitHub (Aug 10, 2023). Original GitHub issue: https://github.com/hibiken/asynqmon/issues/310 sudo make build [sudo] password for erlangga: cd ./ui && yarn build --modules-folder /ui/node_modules yarn run v1.22.19 $ react-scripts build --modules-folder /ui/node_modules Creating an optimized production build... Failed to compile. TS2786: 'Modal' cannot be used as a JSX component. Its element type 'ReactElement<any, any> | Component<ModalProps, any, any> | null' is not a valid JSX element. Type 'Component<ModalProps, any, any>' is not assignable to type 'Element | ElementClass | null'. Type 'Component<ModalProps, any, any>' is not assignable to type 'ElementClass'. The types returned by 'render()' are incompatible between these types. Type 'React.ReactNode' is not assignable to type 'import("/home/erlangga/asynqmon/ui/node_modules/@types/react-redux/node_modules/@types/react/ts5.0/index").ReactNode'. 235 | </TableBody> 236 | </Table> > 237 | <Modal | ^^^^^ 238 | open={activeEntryId !== ""} 239 | onClose={() => setActiveEntryId("")} 240 | className={classes.modal} error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. make: *** [Makefile:6: assets] Error 1
Author
Owner

@thanggggg1 commented on GitHub (Jul 9, 2024):

have you solve this

<!-- gh-comment-id:2217323964 --> @thanggggg1 commented on GitHub (Jul 9, 2024): have you solve this
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynqmon#433
No description provided.