Questions tagged [thirdweb]
46 questions
0
votes
0 answers
thirdweb contract is not installing
I'm getting an error when I try to install contract using command:
npx thirdweb@latest create --contract
Cannot read properties of undefined (reading 'statusCode')
at packageJson…
0
votes
0 answers
Fixing 'npx' Script Execution Error: Resolving PowerShell's Execution Policy Issue
I tried to use npx thirdweb@latest create --contract but I got this error:
[ npx : File C:\Users\AppData\Roaming\npm\npx.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies…

Sara Bavifard
- 1
- 1
0
votes
0 answers
window.ethereum in ThirdWebSDK
I am using the web3.js library to interact with my smart contracts.
To create a Web3 object, I use window.etherum like this Web3(window.etherum).
We are migrating to the ThirdWeb library. In particular the EVM SDK for React.
In this way, I can…

luca gualandi
- 3
- 2
0
votes
0 answers
React - You may need an appropriate loader to handle this file type
I'm fairly new to react and I started playing around with some Web3 libraries just to get a better understanding. Upon installing the thirdWeb SDK per the instructions, I'm getting the following error when I run npm start. I'm using React…

killsburydouboy
- 309
- 1
- 3
- 14
0
votes
1 answer
Cannot find namespace 'StateContext'
I was following this tutorial: https://www.youtube.com/watch?v=BDCT6TYLYdI&t=7217s
I am doing sort of 'my version' of this project by implementing different functionality, but with same tools...
But, I use typescript instead of JavaScript and I ran…

Jan Cahlík
- 91
- 6
0
votes
1 answer
smart contract undefined in thirdweb
I am using thirdweb-dev/react to communicate with smart contract but the issue is it is giving me the contract undefined in my code with this error.
could not resolve metadata for contract at 0xE4ffC734cfa5f3E33f9Da662D0e562155Ad37c6C
Code for…

syed rahman
- 11
0
votes
0 answers
How do I solve these dependancy errors in React?
Conflicting dependancy errors
$ npm install @thirdweb-dev/react @thirdweb-dev/sdk ethers@5
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: wagmi@0.2.28
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN …

Julius
- 1
- 1
0
votes
2 answers
execution reverted: Permit: invalid signature returned when attempting to call permit on USDC erc20 contract on Mumbai test net
I am attempting to call the "permit" function on the USDC contract on the Polygon Mumbai test network: here.
Permit has the following function signature: function permit(address owner,address spender,uint256 value,uint256 deadline,uint8 v,bytes32…

larry rage
- 31
- 2
0
votes
1 answer
Thirdweb error: Transaction was not mined within 50 blocks error
So I have this code:
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
import { ConnectWallet, useAddress } from "@thirdweb-dev/react";
export default function DonationPage() {
let address = useAddress()
async function sendCoins() {
…

Shihab Shahriyar
- 35
- 7
0
votes
1 answer
Thirdweb error: This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK
So I have this code:
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
import { ConnectWallet, useAddress } from "@thirdweb-dev/react";
export default function DonationPage() {
let address = useAddress()
async function sendCoins() {
…

Shihab Shahriyar
- 35
- 7
0
votes
1 answer
npx thirdweb@latest create --contract is giving error
When I try to run the comand it gives me error
EINVAL: invalid argument, mkdir 'C:\Users\fahim\AppData\Local\Temp\fahim\if-you-need-to-delete-this-open-an-issue-sync-disk-cache\thirdweb:cli'
details:
{
errno: -4071,
syscall: 'mkdir',
code:…

BLIND
- 61
- 10
0
votes
1 answer
setuping third web denied permission
EACCES: permission denied, scandir '/root/.npm/_npx/15515/lib/node_modules/thirdweb/node_modules/bigint-buffer`
fixing the error from the code
EACCES: permission denied, scandir…
0
votes
0 answers
(in promise) TypeError: Cannot read properties of undefined (reading 'call')
When i try to call CALL Function of thirdweb it shows error "(in promise) TypeError: Cannot read properties of undefined (reading 'call')". Everthing is correct but.
const getCampaigns = async () => {
const campaigns = await…

killer gamer
- 11
- 3
0
votes
2 answers
Contract is not an nft drop thirdweb
I am trying to use my contracts in my next application via thirdweb . However I am getting the error
"Error: Contract is not a nft-drop".
When I go to the thirdweb dashboard and copy and paste the exact same code, I still receive the error. How can…

Coner
- 9
- 3
0
votes
0 answers
Thirdweb SDK: NFT Gated Website template cannot verify the NFT owned
Using the Thirdweb SDK: NFT Gated Website, I created a local cloned project using the following command:
npx thirdweb create --template nft-gated-website
Updated the const/yourDetails.js and created .env.local as instructed. Then, I launch the…

Raptor
- 53,206
- 45
- 230
- 366