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

React cannot resolve 'crypto' by default. #455

Description

@AnujTimsina

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 .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions