Skip to main content

Questions tagged [nextjs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
44 views

Solana Web3 Instructions Suddenly Not Working (Next.JS)

I've got a Next.js application making a few transactions calls using '@solana/wallet-adapter-react' and @solana/spl-token The application has been working fine locally until with the transactions ...
Steve F's user avatar
1 vote
0 answers
21 views

Sending transaction working locally but not on production

transaction.add( SystemProgram.transfer({ fromPubkey: publicKey, toPubkey: new PublicKey( "wallet here" ), lamports: 0.0069 * 10 ** 9, }) ); const { ...
Kob3Bryant's user avatar
0 votes
1 answer
21 views

I am prevented from creating a next app by my PC

Gm frens, I tried creating a next js project and I kept getting this error " Error: EPERM: operation not permitted, mkdir 'C:\Windows\solana-pay-store'", something about me not having ...
David's user avatar
  • 1
1 vote
1 answer
154 views

Errors when using `@project-serum/anchor` with Next.js v14 using Webpack 5

I am sharing my useWalletHook.tsx file: "use client"; import { Program, AnchorProvider } from "@project-serum/anchor"; import { useConnection, useWallet as useAdapterWallet, ...
sanjeet kumar's user avatar
0 votes
1 answer
50 views

TypeError: off is not a from solanaWalletAdapter [closed]

I am getting this error in next.js thats my index.tsx import React, { FC, useMemo } from 'react'; import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react'; import { ...
Sebastian_B's user avatar
2 votes
1 answer
329 views

Cannot use solana TS packages on CommonJS module

I've been trying to use Solana wallet adapters on my NextJS-TypeScript-based project with no luck. I can run it on the development, but I cannot build it for production. This is what I got when I run ...
Seto's user avatar
  • 131
0 votes
2 answers
134 views

Display Updated Wallet Balance After Transaction Confirmed

i'm learning solana development from Buildspace and this is the tutorial source code for the next.js app https://github.com/buildspace/solana-send-sol-frontend.git the component to display the solana ...
bwnnwtt's user avatar
  • 21
2 votes
1 answer
160 views

umi functions causing Application error: a client-side exception has occurred

My website works fine locally but when deployed to Vercel, I get a client-side exception error. After checking other parts of the website, I've found the culprit to be in my UMI function code. I'm ...
Miles Donald's user avatar
0 votes
0 answers
171 views

Mint Error TypeError: Cannot read properties of undefined (reading 'length')

I'm using @metaplex-foundation/umi version 0.8.2. I upgraded from 0.7.14 because the older version doesn't install correctly anymore(get error missing serializers module) with the new version my mint ...
Miles Donald's user avatar
2 votes
2 answers
66 views

How to update items available count on candy machine UI after someone mints? Next app using umi

I built a ui on next js using typescript and need the items available count to not only show currently available items but to update after a user mints. Currently, I'm using candyMachine.data....
Miles Donald's user avatar
2 votes
3 answers
276 views

Add spl-token balance to wallet balance context provider

I'm trying to add a balance of USDC in a connected wallet that updates on a nextjs typescript website. I want to add it to my SOL balance context provider or do I need to make a completely separate ...
Miles Donald's user avatar
1 vote
0 answers
130 views

Serverbased auth solution for solana wallet [closed]

I created my first opensource project: serverbased login + auth through solana message signing with the T3 stack (nextjs, next-auth, trpc & prisma) https://github.com/mattiprive/solana-login-t3-...
Matti's user avatar
  • 129
1 vote
1 answer
553 views

Issue with Next.js 13 and Solana Wallet Adapter packages

I am trying to implement the Solana wallet adapter to a nextjs 13 project using layout.tsx file. The Solana Wallet adapter was working with no problem on previous next.js versions. I tried to ...
Greer's user avatar
  • 13
2 votes
2 answers
200 views

How to dynamically import clusterApiUrl in next js

I want to dynamically import clusterApiUrl from "@solana/web3.js" using next/dynamic, but I get an error "clusterApiUrl is not a function". This is how I import it: const ...
Nooblantis District's user avatar
0 votes
1 answer
105 views

Transaction working locally and with ngrok (https), but not working when deploying to aws amplify

const lamports = 0.001 * 10 ** 9; const fromPubKey = new PublicKey( 'Wallet sending here' ); const toPubKey = new PublicKey( 'Wallet receiving here' ); const transaction = new ...
Kob3Bryant's user avatar
1 vote
0 answers
27 views

Next.js unresponsive after deployment to Azure/Vercel

After deploying next.js app to Azure/Vercel the site becomes unresponsive. I tried the site on a browser without wallet and the site works fine. After installing phantom to the browser the site works ...
Jakub Kopnicky's user avatar
3 votes
1 answer
204 views

Phantom: WalletSendTransactionError: Something went wrong nextjs

Code works in dev version In production: Error description: Phantom - RPC Error: Something went wrong. {code: -32603, message: 'Something went wrong.'} In server side: const { blockhash } = await (...
Yaryna Gushuley's user avatar
1 vote
0 answers
87 views

Sending SPL Token Exception

I am attempting to transfer tokens when a user clicks a button. Once a user connects their wallet I have this method that gets called when a user clicks a button async function claimTokens() { ...
ShadyTSD's user avatar
0 votes
1 answer
48 views

Conditional rendering with Solana Wallet Adapter & NextJS

I was wondering whether this was a safe way to render certain elements only for specific pubkeys when connected through Solana wallet adapter in Nextjs. This code returns an < AdminPanel /> when ...
Matti's user avatar
  • 129
1 vote
1 answer
239 views

Detect account switching in Phantom Wallet?

What is the best way to detect account switching in Phantom Wallet? I am using Nextjs.
user1948's user avatar
5 votes
2 answers
1k views

sendAndConfirmTransaction returns Cannot read properties of undefined (reading 'toString')

I cannot send the transaction here. Tried using wallet-adapter methods as well as solana/web3js methods, tried separating sendTransaction and confirmTransaction. Similar "cannot read .toString() ...
Ashwini Kumar's user avatar
0 votes
1 answer
308 views

How do I use WalletPovider for a function outside of return()?

I have been attempting to use the Solana Labs wallet adapter to create a NFT Staking site. The backend script is on the chain using Gemworks Gem Lab. Currently my front end has functions created by ...
Joshua's user avatar
  • 83
5 votes
1 answer
394 views

What method should a dApp use to detect a change in Wallet Network for any wallet supported in the Solana Wallet Adapter?

When building a Solana dApp, developers need to understand changes in both the active wallet for the current user and in changes to the selected network for that wallet. Changes to the active wallet ...
Wagg's user avatar
  • 173