Closed syed-dce closed 1 year ago
I noticed it comes from @solana/buffer-layout-utils
@syed-dce Did you solve it? I am having the same issue. Thanks!
i am have same problem
I solved it by upgrading to React-Native 0.7
oh thank you so much, ill try to upgrade, btw are u running with expo?
No, I am not using Expo.
I was using a lot of libraries in my project, and four of them gave me compatibility problems with React 0.7. I had to solve the problem with each one before it works.
Ty btw, but i have new problem at cant find variable BigInt after upgrading react native
In react native I am getting this error : [SyntaxError: No identifiers allowed directly after numeric literal]
There is no stack shown. How do I even begin debugging this without any call stack?
Error message image
Here is my App.tsx file. When I comment out
getOrCreateAssociatedTokenAccount
line the error goes away. When I uncommentgetOrCreateAssociatedTokenAccount
line the error comes backAlso, importantly this same code works successfully in nodejs separately (that is when I make a separate node app) - but fails when it (code) is being used in react-native using the same library - @solana/spl-token.
App.tsx (react-native):-
package.json (react-native):