Comments (11)
@ignaciosantise I forgot to update here. This issue is fixed for me. I ran through my package.json and found out that if these two packages 'buffer' and 'events' are installed, I encounter this issue. I removed these packages and never seen this error since then. Thanks a lot
from web3modal-react-native.
from web3modal-react-native.
can you share you peerDeps, this seems to be related to a polyfill overwriting some values
from web3modal-react-native.
@glitch-txs Attaching package.json. Please take a look
package.json
from web3modal-react-native.
@glitch-txs @ignaciosantise I'm blocked by this issue. Can you please help me ?
from web3modal-react-native.
@shan-c can you share a public repository were i can reproduce the issue?
from web3modal-react-native.
any updates on this one guys?
It makes your app non responsive and nothing happens, are you sure you dont have destructuring missing somwhere after a rerender ?
from web3modal-react-native.
hey @mihairadulescu can you provide a public repository so i can reproduce the error?
Also, did you add any polyfill to your project? It might be the cause of the issue: WalletConnect/walletconnect-monorepo#4064 (comment)
from web3modal-react-native.
@ignaciosantise I do not use any external polyfiils. I use babel for my react native app. This is the config
const lazyImports = require('metro-react-native-babel-preset/src/configs/lazy-imports');
module.exports = (api) => {
api.cache(true);
return {
comments: false,
compact: true,
presets: [['module:metro-react-native-babel-preset', { useTransformReactJSXExperimental: true }],],
plugins: [
'react-native-reanimated/plugin',
'nativewind/babel',
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-proposal-optional-catch-binding',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-block-scoping',
[
'@babel/plugin-proposal-class-properties',
{
loose: true,
},
],
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-export-default-from',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-computed-properties',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-destructuring',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-function-name',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-literals',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-parameters',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-shorthand-properties',
[
'@babel/plugin-transform-react-jsx',
{
runtime: 'automatic',
},
],
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-regenerator',
'@babel/plugin-transform-sticky-regex',
'@babel/plugin-transform-unicode-regex',
'@babel/plugin-proposal-export-default-from',
[
'@babel/plugin-transform-modules-commonjs',
{
strict: false,
strictMode: false, // prevent "use strict" injections
lazy: (importSpecifier) => lazyImports.has(importSpecifier),
allowTopLevelThis: true, // dont rewrite global `this` -> `undefined`
},
],
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-classes',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-arrow-functions'
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-spread',
'@babel/plugin-proposal-object-rest-spread',
// SUPPORTED BY DEFAULT: [
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-template-literals',
// SUPPORTED BY DEFAULT: {loose: true}, // dont 'a'.concat('b'), just use 'a'+'b'
// SUPPORTED BY DEFAULT: ],
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-exponentiation-operator',
// SUPPORTED BY DEFAULT: '@babel/plugin-transform-object-assign',
// SUPPORTED BY DEFAULT: ['@babel/plugin-transform-for-of', {loose: true}],
// 'metro-react-native-babel-preset/src/transforms/transform-symbol-member',
'@babel/plugin-transform-react-display-name',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
[
'@babel/plugin-transform-runtime',
{
helpers: true,
regenerator: true,
polyfill: false
},
],
],
};
};
from web3modal-react-native.
@shan-c can you provide a public repository so i can reproduce the issue?
You can generate a new project running npx react-native init AwesomeProject
and then follow our docs to install the SDK here: https://docs.walletconnect.com/web3modal/react-native/about#installation
So we can check if there's a configuration issue in your project or is something else
from web3modal-react-native.
Related Issues (20)
- [feature] Upgrade @web3modal/core-react-native to valtio 1.11.2 HOT 3
- [bug] Inability to execute write calls to contracts on React Native HOT 7
- [bug]: Can't find variable React HOT 5
- [feature] wagmi, viem v2 support HOT 10
- [bug]: After approve/reject request in wallet don't redirect back on dapp on iOs 17+ HOT 1
- [bug]: New architecture support HOT 5
- [feature] Implement Analytics core
- [chore] Release alpha version of Analytics
- [feature] Send basic events to API
- Send Basic Events to API HOT 1
- Implement Analytics Core HOT 1
- Alpha Testing Bug fixes
- BETA | Update documentation
- [bug] IOS Crashes When Using this package with Webview HOT 7
- [bug]: Transaction process fails while staying in the wallet app HOT 5
- [bug]: Metamask chainId error HOT 1
- [bug]: Can't connect to wallet like SafePal, Trust Wallet... HOT 6
- [feature] Getting connected wallet metadata HOT 2
- [feature] Support `eth_signTypedData_v4` RPC method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web3modal-react-native.