If you’re using a framework like Gatsby and are running into build errors, check out some common errors below, and how to resolve them.There is likely an issue with how you are rendering the Though Gatsby typically recommends using
iframe not initialized
If you encounter an error like the one below:PrivyProvider
component within your app.Namely, if you are using Gatsby’s wrapRootElement
to wrap your app with the PrivyProvider
, you should use wrapPageElement
instead, like below:gatsby-browser.tsx
wrapRootElement
for React Contexts, the PrivyProvider
component contains UI (HTML) elements as well, including a dialog (the Privy modal) and an iframe (the Privy iframe, used for embedded wallets). Given these UI elements, wrapPageElement
must be used instead of wrapRootElement
.Still have questions? Reach out to our support team – we’re here to help!