You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
It's a .tsx file, not .ts.
As for the report, it may not be possible; perhaps we need to create another project with the same configuration, but that will take some time.
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: