GithubHelp home page GithubHelp logo

Comments (11)

shan-c avatar shan-c commented on September 27, 2024 1

@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.

shan-c avatar shan-c commented on September 27, 2024

@ignaciosantise

from web3modal-react-native.

glitch-txs avatar glitch-txs commented on September 27, 2024

can you share you peerDeps, this seems to be related to a polyfill overwriting some values

from web3modal-react-native.

shan-c avatar shan-c commented on September 27, 2024

@glitch-txs Attaching package.json. Please take a look
package.json

from web3modal-react-native.

shan-c avatar shan-c commented on September 27, 2024

@glitch-txs @ignaciosantise I'm blocked by this issue. Can you please help me ?

from web3modal-react-native.

ignaciosantise avatar ignaciosantise commented on September 27, 2024

@shan-c can you share a public repository were i can reproduce the issue?

from web3modal-react-native.

mihairadulescu avatar mihairadulescu commented on September 27, 2024

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.

ignaciosantise avatar ignaciosantise commented on September 27, 2024

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.

shan-c avatar shan-c commented on September 27, 2024

@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.

ignaciosantise avatar ignaciosantise commented on September 27, 2024

@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)

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.