/Users/TrexK/Downloads/start_react_pro_v1.0.0/theme/src/_start/partials/content/code-highlight/CodeBlock.tsx
TypeScript error in /Users/TrexK/Downloads/start_react_pro_v1.0.0/theme/src/_start/partials/content/code-highlight/CodeBlock.tsx(54,12):
'Highlight' cannot be used as a JSX component.
Its instance type 'Highlight' 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("/Users/TrexK/Downloads/start_react_pro_v1.0.0/theme/node_modules/@types/react-redux/node_modules/@types/react/ts5.0/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
Type '{}' is missing the following properties from type 'ReactPortal': children, type, props, key TS2786
52 |
53 | <div className="highlight-code" ref={codeRef}>
> 54 | <Highlight
| ^
55 | {...defaultProps}
56 | theme={theme}
57 | code={code}
Hi,
I am sorry to hear that you have experienced this error.
We will need some time to check this problem.
Could you please specify your node and npm version?
Regards,
Lauris Stepanovs,
Keenthemes Support Team