-
Notifications
You must be signed in to change notification settings - Fork 73
TS2786: 'Moment' cannot be used as a JSX component. Everything worked before the upgrading to 1.1.2 #148
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Receiving the same error, was still on 1.1.1 though |
same here :( version 1.1.1 |
Same here |
Solves it, discussion can be found here => facebook/react#24304 (comment) |
@ozluy thank you |
#148 (comment) thanks! |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
TS2786: 'Moment' cannot be used as a JSX component.
Its instance type 'Moment' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("C:
/Users/Dior2/Anvar/custom/smarts/smarts/client/node_modules/@types/react-router/node_modules/@types/react/index")
.ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
Type '{}' is missing the following properties from type 'ReactPortal': key, children, type, props
The text was updated successfully, but these errors were encountered: