0

https://github.com/safe-global/safe-core-sdk/tree/main/packages/auth-kit/example

After running yarn install and yarn start, I get a lot of missing dependencies.

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Apr 25 at 13:34

1 Answer 1

0

Can you please be more specific about what dependencies are missing?

The most common cause is a Webpack 5 Polyfill issue with Web3Auth, our AuthKit provider.

It usually results in errors like this: Module not found: Error: Can't resolve 'crypto'

This can be solved by following these steps or looking at this commit.

Summary:

  1. Add missing dependences:
yarn add --dev react-app-rewired crypto-browserify \
stream-browserify assert stream-http https-browserify \
os-browserify browserify-zlib url buffer process
  1. Use react-app-rewired and create a config-overrides.js
1
  • I've seen that the problem was that the instructions were outdated. With the new updated instruction, it works with no problem. I was missing the "yarn install" in the root folder, that was not said.
    – yondur
    May 4 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.