question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module parse failed: @walletconnect/sign-client

See original GitHub issue

Description

I get this error when I yarn start my react project

./node_modules/@walletconnect/sign-client/dist/index.es.js 317:19
Module parse failed: Unexpected token (317:19)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|             w = {
|         requiredNamespaces: s,
>         relays: r ?? [{
|           protocol: W
|         }],

@walletconnect/sign-client version 2.0.0.rc2

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bradleySuiracommented, Nov 21, 2022

Hi all found the same issue when was trying to add WC to our project Screen Shot 2022-11-20 at 9 59 12 PM

it’s a Vuejs project so at the end I had to put this in the custom web pack config (chainWebpack inside vue.config.js)

config.module
      .rule('walletConnect')
      .test(/node_modules[\\/]@walletconnect/)
      .use('babel-loader')
      .loader('babel-loader')
1reaction
mrosendincommented, Aug 24, 2022

Hi @IljaDaderko thank you for your response. The project is private unfortunately but I was able to solve the problem using this SO answer: https://stackoverflow.com/a/67543975/4198841

A few other details: the project is using ESNext which includes support for the nullish coalescing operator, so as the SO answer suggests, it’s due to a Babel transpilation issue for the targeted browsers in package.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to use @walletconnect/sign-client with angular/ionic
Trying to include @walletconnect/sign-client into my Ionic v5 project. ... 1:7237 [ng] Module parse failed: Unexpected token (1:7237) [ng] ...
Read more >
Error - Can't resolve '@walletconnect/web3-provider'
When walletconnect is installed I can't deploy code successfully to cloud. ... node_modules/source-map-loader/dist/cjs.js): Failed to parse ...
Read more >
@walletconnect/sign-client | Yarn - Package Manager
This library provides a Sign Client for WalletConnect v2.0 Protocol for both Dapps and Wallets. Integration will differ from the perspective of each...
Read more >
Adding Mobile Signing to Your dApp with WalletConnect
This session was recorded during Decipher 2021 in Miami, Florida.Featuring:- Ryan R. Fox, Senior Developer Advocate, AlgorandFollow Decipher ...
Read more >
Module not found: Error: Can't resolve 'stream' in React project ...
I believe changing react-scripts to 4.0.3 and rerunning yarn install or npm install would've fixed this issue. There are several ways to get ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found