Dyanamic loading of DynamicPDFViewer not working.
kamiuetian opened this issue · comments
'ResumeIFrame' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{ documentSize: string; scale: number; children: ReactNode; enablePDFViewer?: boolean | undefined; }, any, any> | null' is not a valid JSX element.
Type 'Component<{ documentSize: string; scale: number; children: ReactNode; enablePDFViewer?: boolean | undefined; }, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<{ documentSize: string; scale: number; children: ReactNode; enablePDFViewer?: boolean | undefined; }, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("E:/Projects/Instantjobcv/node_modules/@types/react/ts5.0/index").ReactNode'.
27 |
28 |
29 | <ResumeIFrame
| ^
30 | documentSize={settings.documentSize}
31 | scale={scale}
32 | enablePDFViewer={DEBUG_RESUME_PDF_FLAG}