xitanggg / open-resume

OpenResume is a powerful open-source resume builder and resume parser. https://open-resume.com/

Home Page:https://open-resume.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}