Requirements
- React 18 or higher
- TypeScript 5 or higher
Installation
Install the Privy React SDK with a supported package manager:Solana dependencies
Solana dependencies
If your app uses Privy’s Solana wallets, install the following peer dependencies:If build errors remain, see the Vite troubleshooting guide.
One example is
@solana/kit@solana-program/memo@solana-program/system@solana-program/token
externals config. Skip this step for Turbopack:getTransferSolInstruction export errors.Vite resolves string-literal dynamic imports during dependency optimization, so optional or
environment-specific packages must be installed for builds to pass. These packages are not
included in the main runtime bundle; they are loaded only when the dynamic import path is used.

