Skip to content

Unable to add Flatfile to an existing Vite project using FlatfileProvider, however intiailizeFlatfile works #29

@titus58

Description

@titus58

I'm trying to implement Flatfile on an existing project created with Vite. I'm having problems getting the iframe to start when using FlatfileProvider.

Initially I thought there's a problem with the HTML file or I'm missing some CSS. However, I also tried using the initializeFlatfile hook and everything worked well. I don't mind using initializeFlatfile but it shows up on my IDE as deprecated.

I extracted only the essential code on a small repo. In App.jsx I have two components. One uses initializeFlatfile and the other one FlatfileProvider.

https://github.com/titus58/flatfile-react/blob/master/src/App.jsx#L37

Can someone tell me what I'm doing wrong with the FlatfileProvider ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions