Skip to content

Module parse failed #43

Open
Open
@loulou1007

Description

@loulou1007

Hello ! I want to use react-file-viewer, but i have an error when I build my project 👍
viewer_error

export default class ViewerYes extends React.Component<Props, State>{
const file = './yes.png'
const type = 'png'  
public render() {
        return (
            <div>
                <FileViewer
                    fileType={type}
                    filePath={file}
                    errorComponent={CustomErrorComponent}
                    />
            </div>
        )
   }
}

And I call the component in a parent component like this :
<ViewerYes/>

Do you have a solution about this issue ?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions