Moralis React try to use magic-sdk even if not using it in code

Hi.
After I upgraded to Moralis 1.2.3 and react-moralis 1.2.1 I keep getting the following warning when running our app:
/node_modules/moralis/lib/browser/Web3Connector/MagicWeb3Connector.js
Module not found: Canā€™t resolve ā€˜magic-sdkā€™ in ā€˜/Users/shahar/Projects/gallerium/web_frontend/node_modules/moralis/lib/browser/Web3Connectorā€™

We do use wallet connect but not the magic email sign-in option so I guess the code should not try to load it.

that is only a warning

Yea. I know. Just thought Iā€™ll report it as something you guys might want to remove in the futureā€¦
Thanks!

1 Like

Same Issue Here any updates on this

moralis version: 1.3.2
react-moralis version: 1.3.1

Error

./node_modules/moralis/lib/browser/Web3Connector/WalletConnectWeb3Connector.js
Module not found: Can't resolve '@walletconnect/web3-provider' in '/Users/xxx/Desktop/projects/banking-dapp/frontend/node_modules/moralis/lib/browser/Web3Connector'

./node_modules/moralis/lib/browser/Web3Connector/Web3AuthConnector.js
Module not found: Can't resolve '@web3auth/web3auth' in '/Users/xxx/Desktop/projects/banking-dapp/frontend/node_modules/moralis/lib/browser/Web3Connector'

./node_modules/moralis/lib/browser/Web3Connector/MagicWeb3Connector.js
Module not found: Can't resolve 'magic-sdk' in '/Users/xxx/Desktop/projects/banking-dapp/frontend/node_modules/moralis/lib/browser/Web3Connector'

Can someone help us, it prevents deploying to netlify

Were you able to solve this problem?

You have to install a few additional dependencies:

1 - npm install @walletconnect/web3-provider --s
2 - npm install @web3auth/web3auth --s
3 - npm i magic-sdk --s

Worked for me, be blessed and code on!

2 Likes