-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add Flatfile to an existing Vite project using FlatfileProvider, however intiailizeFlatfile works #29
Comments
Hey, thank you for reaching out to us. I am glad |
Got it. Thank you so much for the quick reply |
I would love an @ from you @Arsik36 when the examples and docs are finalized! |
Will do :) |
Hi, thank you for your patience as we were updating the docs. Happy to let you know that we now updated docs for React and have an example repo. |
Thanks for the update @Arsik36 . I can confirm it is working now. I compared my old version to the new one that is working and it seems that the issue was having the Btw, there are some syntax errors in the updated documentation. In FlatfileProvider -> config there are some commas missing after some lines (exitTest, exitPrimaryButtonText). Also it would be helpful if the value in configs are set in the docs, instead of referencing some variables (mountElement etc) that are outside the docs page. |
Thank you for letting me know, just PR-ed to correct the syntax issues :) |
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 usinginitializeFlatfile
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 oneFlatfileProvider
.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
The text was updated successfully, but these errors were encountered: