src/_metronic/helpers/components/KTSVG.tsx
src/_metronic/helpers/components/KTSVG.tsx(13,8):
'SVG' cannot be used as a JSX component.
Its instance type 'InlineSVG' 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("node_modules/react-intl/node_modules/@types/react/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'. TS2786
11 | return (
12 | <span className={`svg-icon ${className}`}>
> 13 | <SVG src={toAbsoluteUrl(path)} className={svgClassName} />
| ^
14 | </span>
15 | )
16 | }
I got this problem when run yarn start
I use the React Demo 3
Hi,
Try to follow the instalation doc: https://preview.keenthemes.com/metronic8/react/docs/docs/quick-start. It should help to fix this issue.
Regards,
Keenthemes support
It's working. But how about if I change the libraries (adding more)? The lock file will be changed. Could you let me know what the problems are?
Thanks.
Hi,
The problem is React published v18 without backward compatibilities with v17. And first, we have to upgrade React version of our app.
Our developers have already done it and this release will be published early next week.
Regards,
Keenthemes support
Thank you,
Hopefully, I will have that built as soon as possible. Now it's risky to start with the current version for my team.