Hi, I'm trying to run the react demo 1 but i keep getting this error when running yarn start:
Failed to compile.
/projects/avi-react/src/_metronic/helpers/components/KTSVG.tsx
TypeScript error in /projects/avi-react/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("/projects/avi-react/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 | }
Hi,
We know about this issue, the fix will be released in v8039.
For now, follow the instructions here: https://preview.keenthemes.com/metronic8/react/docs/docs/quick-start, it will help you run the app without errors.
Regards,
Keenthemes support