Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
enzshew opened this issue Aug 10, 2023 · 1 comment

Comments

@enzshew
Copy link

enzshew commented Aug 10, 2023

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

@thanggggg1
Copy link

have you solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants