I can't connect My React App

I’ve Built a Frontend to Interact With Your Contract, but can’t connect to my wallet extension.

2 Likes

Can you please share the repo or gist where we can look at the code?

1 Like

I followed the instructions to creat a counter-dapp:

But it always asks me to install a new wallet, while I already have one here.
Please help,

2 Likes

Besides, I have created a contract according to your git, GitHub - Nazeeh21/src-20-test-deploy
but I get an error, can you help me fix it,
Error:
root@vmi1212625:~/src-20-test-deploy# forc build
Creating a new Forc.lock file. (Cause: lock file did not match manifest)
Removing core
Removing std git+https://github.com/fuellabs/sway?tag=v0.49.3#0dc6570377ee9c4a6359ade597fa27351e02a728
Adding core
Adding std git+https://github.com/fuellabs/sway?tag=v0.60.0#2f0392ee35a1e4dd80bd8034962d5b4083dfb8b6
Created new lock file at /root/src-20-test-deploy/Forc.lock
warning
→ /root/.forc/git/checkouts/asset-30641758e4be7209/dcbbec000a9051e71c0c21f4b720eebbb55c199a/libs/native_asset/src/metadata.sw:164:5
|
162 |
163 | pub fn _set_metadata(
164 | metadata_key: StorageKey,
| ------------ This declaration is never used.
165 | asset: AssetId,
166 | key: String,

Can you share the output by running the fuelup show command in your terminal?

1 Like

root@vmi1212625:~# fuelup show
Default host: x86_64-unknown-linux-gnu
fuelup home: /root/.fuelup

installed toolchains

latest-x86_64-unknown-linux-gnu (default)

active toolchain

latest-x86_64-unknown-linux-gnu (default)
forc : 0.60.0
- forc-client
- forc-deploy : 0.60.0
- forc-run : 0.60.0
- forc-crypto : 0.60.0
- forc-debug : 0.60.0
- forc-doc : 0.60.0
- forc-explore : 0.28.1
- forc-fmt : 0.60.0
- forc-lsp : 0.60.0
- forc-tx : 0.60.0
- forc-wallet : 0.7.1
fuel-core : 0.26.0
fuel-core-keygen : 0.26.0

fuels versions

forc : 0.62.0
forc-wallet : 0.62.0

Please check, bro

Okay, the versions seem nice. I will try reproducing it locally and will try to resolve it.

1 Like

i have the same issue and i cant connect to my App too
i tried almost everything
any idea what is the problem

fuels versions

forc : 0.62.0
forc-wallet : 0.62.0
root@fuel-dapp:~# nano src/App.tsx
root@fuel-dapp:~# fuelup show
Default host: x86_64-unknown-linux-gnu
fuelup home: /root/.fuelup

installed toolchains

latest-x86_64-unknown-linux-gnu
testnet-x86_64-unknown-linux-gnu (default)

active toolchain

testnet-x86_64-unknown-linux-gnu (default)
forc : 0.60.0
- forc-client
- forc-deploy : 0.60.0
- forc-run : 0.60.0
- forc-crypto : 0.60.0
- forc-debug : 0.60.0
- forc-doc : 0.60.0
- forc-explore : 0.28.1
- forc-fmt : 0.60.0
- forc-lsp : 0.60.0
- forc-tx : 0.60.0
- forc-wallet : 0.7.1
fuel-core : 0.26.0
fuel-core-keygen : 0.26.0

fuels versions

forc : 0.62.0
forc-wallet : 0.62.0

the versions look fine for you as well. I will look into it and see whats the issue. I will try to provide some concrete solutions to you by tomorrow. Appreciate your patience.

I tried it out locally and it was working fine for me. Here is the screen recording of my local app. would be helpful if you could share your repos and I will try running it locally

1 Like

Thanks, I will try again.

1 Like

I face to with this issue how you solve this issue ?

how you solved this issue ?
i can not connect

installed toolchains

latest-x86_64-unknown-linux-gnu (default)

active toolchain

latest-x86_64-unknown-linux-gnu (default)
forc : 0.60.0
- forc-client
- forc-deploy : 0.60.0
- forc-run : 0.60.0
- forc-crypto : 0.60.0
- forc-debug : 0.60.0
- forc-doc : 0.60.0
- forc-explore : 0.28.1
- forc-fmt : 0.60.0
- forc-lsp : 0.60.0
- forc-tx : 0.60.0
- forc-wallet : 0.7.1
fuel-core : 0.26.0
fuel-core-keygen : 0.26.0

fuels versions

forc : 0.62.0
forc-wallet : 0.62.0

I just followed the steps from the guide. Can you share the wallet version you’re using?

Also, would you mind following this guide again to just make sure everything is up to date?

For the ref, this is my output for the command fuelup show Warp

1 Like

the output is correct and i use fuel wallet Version
0.21.1 but i have problem to connect :frowning:

i see. it shouldn’t be the problem as all the versions you are using are correct. can you give me your code, so that I can try it out locally? also, what browser and OS are you using?

2 Likes

Chrome on Windows 11 Pro, sir

I use of this doc

and my browser is chrome on windows

Just confirming, this is the frontend repo you are trying to connect from, right? if yes, I will try that out locally today and will lyk how it goes :slight_smile: