Module parse failed: @walletconnect/sign-client
See original GitHub issueDescription
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:
- Created a year ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi all found the same issue when was trying to add WC to our project
it’s a Vuejs project so at the end I had to put this in the custom web pack config (
chainWebpack
insidevue.config.js
)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
.