NEWTON
Asked
3 months 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
3 months 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
3 months 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?
Is there any issue between using 4.4 and 3.x starknet.js?
How to write "and" conditional logic in Cairo?
Python issues with Pathfinder
Trying to deploy contract with Argent guide but got error Unitialized Contract
Cairo: Else if statement
Does anyone know how to print a uint256 in protostar tests?
Does Account Abstraction support "Session Keys"?