Coder Social home page Coder Social logo

react-native-web3-wallet's Issues

Patching not working "react-native-aes-crypto"

Hi.

I followed your guideline on using your package, but I hit a roadblock at around the third stage.

Patch not working for "react-native-aes-crypto".

Here is the response after running the patch command...

`patch-package 6.4.7
Applying patches...
@ethersproject/[email protected]
@ethersproject/[email protected]
@ethersproject/[email protected]
[email protected]
[email protected]

ERROR Failed to apply patch for package react-native-aes-crypto at path

node_modules/react-native-aes-crypto

This error was caused because react-native-aes-crypto has changed since you
made the patch file for it. This introduced conflicts with your patch,
just like a merge conflict in Git when separate incompatible changes are
made to the same piece of code.

Maybe this means your patch file is no longer necessary, in which case
hooray! Just delete it!

Otherwise, you need to generate a new patch file.

To generate a new one, just repeat the steps you made to generate the first
one.

i.e. manually make the appropriate file changes, then run

patch-package react-native-aes-crypto

Info:
Patch file: patches/react-native-aes-crypto+2.1.0.patch
Patch was made for version: 2.1.0
Installed version: 2.1.1


patch-package finished with 1 error(s).`

get error

i get this error when using function createWallet

image

i get error on hdnode

image

image

node_modules/react-native-web3-wallet/node_modules/ethers/lib.commonjs/abi/abi-coder.js: /Users/linjingbo/Documents/Project/MyWallet/node_modules/react-native-web3-wallet/node_modules/ethers/lib.commonjs/abi/abi-coder.js: Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.

我的依赖
"dependencies": {
"@ethersproject/shims": "^5.7.0",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@reduxjs/toolkit": "^1.9.7",
"axios": "^1.6.1",
"ethers": "6.9.1",
"i18next": "^23.7.18",
"patch-package": "^8.0.0",
"react": "18.2.0",
"react-i18next": "^14.0.1",
"react-native": "0.73.2",
"react-native-aes-crypto": "3.0.1",
"react-native-gesture-handler": "^2.14.1",
"react-native-get-random-values": "^1.10.0",
"react-native-keychain": "^8.1.2",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "^4.7.4",
"react-native-screens": "^3.27.0",
"react-native-scrypt": "1.2.1",
"react-native-vector-icons": "^10.0.2",
"react-native-web3-wallet": "github:heroims/react-native-web3-wallet#ether6.x",
"react-native-webview": "^13.6.2",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-devtools-extension": "^2.13.9",
"redux-persist": "^6.0.0",
"redux-persist-filesystem-storage": "^4.2.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@pancakeswap/eslint-config-pancake": "^1.2.0",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/babel-preset": "0.73.19",
"@react-native/eslint-config": "0.73.2",
"@react-native/metro-config": "0.73.3",
"@react-native/typescript-config": "0.73.1",
"@tsconfig/react-native": "^3.0.2",
"@types/react": "^18.2.6",
"@types/react-native-vector-icons": "^6.4.17",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"metro-react-native-babel-preset": "0.76.8",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
该如何解决这个问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.