Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

React cannot resolve 'crypto' by default. #455

Open
AnujTimsina opened this issue Jul 11, 2022 · 0 comments
Open

React cannot resolve 'crypto' by default. #455

AnujTimsina opened this issue Jul 11, 2022 · 0 comments

Comments

@AnujTimsina
Copy link

AnujTimsina commented Jul 11, 2022

Describe the bug
React-scripts 5.0.1 cannot resolve 'crypto' by default.

To Reproduce

Steps to reproduce the behavior:

  1. Create a react app.
  2. npm install @zilliqa/zilliqa
  3. import Zilliqa from '@zilliqa-js/zilliqa'
  4. In terminal, it shows " Can't resolve 'crypto' in 'G:\node_modules\hdkey\lib'"

Screenshots
image
image
image

Desktop (please complete the following information):

103.0.5060.114

Smartphone (please complete the following information):

Additional context
This can be solved by changing react-scripts dependencies inpackage.json from 5.0.1 to 4.0.3 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant