New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage with Create React App #37
Comments
Hey, please have a look here: it seems like the issue is in react scripts code, could you try to locate that bug in their source code? Have you tried with next's/parcel? :) So we'd know if it's a general thing |
This helps: "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 (had to delete |
You are a legend @janek! I was about to gear myself up to faff about with my tsconfig when I found this. Instant solve! Thank you sir |
@janek26 your fix just saved my day, i wonder what is the actual root cause of this problem - but thanks! |
Hopefully this will be fixed soon by StarkWare switching BigInts to hex strings in compiled contracts |
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
The text was updated successfully, but these errors were encountered: