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
ReactElement not assignable #1266
Labels
Comments
Looks like you're using a |
It's a .tsx file, not .ts. |
It's likely an editor misconfiguration. It parses the file as ts not tsx hence the "Parsing error: '>' expected". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am using Next.js, and I have a problem when trying to test a component with react.createNode or react.createElement. The test cannot understand my component and displays errors. However, on all other components that do not use these features, the tests work fine. My environment:
What I did:
Problem description:
Argument of type 'boolean' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor>'.ts(2345)
Parsing error: '>' expected.eslint
'ListPageActionBar' refers to a value, but is being used as a type here. Did you mean 'typeof ListPageActionBar'?
The text was updated successfully, but these errors were encountered: