NEWTON
Asked
23 days ago
7
views
0
I made an example using this library with react, everything is working fine in development, but in production, it looks like starknet.js is throwing a type error. You can open this page to see the error more in detail.
To reproduce locally:
yarn run build
yarn run serve
Based on this Github thread
Newton
asked
23 days ago
0
Accepted answer
Try to make the following steps:
"browserslist": { "production": [ "chrome >= 67", "edge >= 79", "firefox >= 68", "opera >= 54", "safari >= 14" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }
in package.json
The issue is that native BigInt support is required atm
This worked like a charm if you delete node_modules
Newton
answered
23 days ago
Is there any issue between using 4.4 and 3.x starknet.js?
What is Starknet.js?
Does anyone have an example of a positional request to `starknet_addInvokeTransaction` on devnet that is working?
How do I develop against cairo devnet with browser wallets?
How to fix invalid character error while invoking starknetjs frontend app in Cairo?
Which lib can help me to make a multicall in JS for StarkNet?
How to submit a StarkNet contract?
What is the maximum value an uint and felt can store in Cairo Language?
Is there any issue between using 4.4 and 3.x starknet.js?
How to write a struct in storage?
What is Kakarot, the zkEVM written in Cairo?
Any idea what this could be caused by?
Cairo Lang / StarkNet: What are Revoked references? What is alloc_locals?
Hey, is there anyway to debug Cairo contracts in hardhat environment? Something like hardhat console in solidity