TypeError: Cannot read properties of undefined (reading 'call')

251 Views Asked by At

I'm building a Bubble.io plugin to connect to Tezos Blockchain. I'm using @taquito/beacon-wallet to connect, but to use libs in Bubble you need to use webpack, the lib is working fine by console.logging, but when i call a function goes to this error:

TypeError: Cannot read properties of undefined (reading 'call')

Before, my problem was the buffer, and i solved by adding it to webpack.config.js, like this:

  plugins: [
    new webpack.ProvidePlugin({
        Buffer: ['buffer', 'Buffer'],
    })
  ],
  resolve: {
    fallback: {
      stream: false,
      buffer: require.resolve('buffer/'),
    }

I tried the same solution to call method, but won't worked

0

There are 0 best solutions below