Vue: @wea-modal-evm-vue error: can't resolve react

Hi, I’m a Vue developer and I was trying to use web3Auth using the demo linked below, but for some reason there are 15 errors acusing of “can’t resolve react”, I believe that there is some depencies problem. Please, let me know if its just outdated or if its a current problem.

I followed the demo step, dowloaded the dependencies using yarn and then yarn serve. Currently trying to run it, but still no success. Please, let me know any problem or news for vue web3auth, thanks.

https://github.com/Web3Auth/web3auth-pnp-examples/tree/main/web-modal-sdk/evm/vue-evm-modal-example

Hi @joaofrancisco.guarda, I just cloned the repo and run npm install then npm run serve, it is working without any errors. I am also able to build the project. You can have a look at the hosted examples Web3Auth Demos | Linktree. Here, the Vue EVM example is the one you are searching for.
If you’re facing the error then too, please post a screenshot of the errors so that I can help you with this.

Hi Maharshi, thanks for replying, I didn’t saw it. So, I tried a few minutes ago downloading via npm degit as the readme and by git clone, but both ways ended up like this:

Same problems, 15 erros like that.

1 Like

I am still unsuccessful in re-creating this issue. Could you please take a fresh pull of the examples, delete the node_modules folder and package-lock.json file then run fresh npm install. The error clearly shows that the modules have some dependency that can’t be resolved. Let me know if this helps you.

@joaofrancisco.guarda Hi, I encountered a similar issue from another user. Where they were trying to install the dependencies using yarn but that would result in some or the other error as our examples have package-lock.json and not yarn.lock. So I’ll advise you to run npm install and check if that resolves your issue.