umi
umi copied to clipboard
Attempts to fix umi-bundle-defaults on Vite
Attempts to address:
https://github.com/metaplex-foundation/umi/issues/146 https://github.com/metaplex-foundation/umi/issues/147 https://github.com/metaplex-foundation/umi/issues/124
How to Reproduce
-
Create a Vite React App:
- Use the following command to create a new Vite React app:
npm create vite@latest my-react-app --template react
- Navigate to the project directory:
cd my-react-app
- Install dependencies:
npm install
- Use the following command to create a new Vite React app:
-
Add Umi and Solana Wallet Adapter:
- Install Umi and Solana wallet adapter packages:
npm install @metaplex-foundation/umi @solana/wallet-adapter-react ...other wallet adapter deps
- Install Umi bundle defaults:
npm install @metaplex-foundation/umi-bundle-defaults
- Install Umi and Solana wallet adapter packages:
-
Configure Umi and Solana Wallet:
- Follow the Umi documentation to set up Umi and the Solana wallet adapter in your project. This typically involves:
- Setting up the Umi provider.
- Configuring the Solana wallet adapter.
- Adding necessary imports and configuration code to adapt the wallet adapter for umi.
- Follow the Umi documentation to set up Umi and the Solana wallet adapter in your project. This typically involves:
-
Run the Application:
- Start the Vite development server:
npm run dev
- Observe the application behavior. Issues should be apparent at this stage if you at least are instantiating the UMI wallet adapter and UMI overall (You won't get the error just by installing it, but on usage).
- Start the Vite development server:
-
Expected Outcome:
- The application should integrate Umi and Solana wallet adapter correctly.
- Any errors or issues should be logged in the console for further debugging.