3box / 3box-js

3Box JavaScript SDK: User identities, storage, messaging
MIT License
207 stars 65 forks source link

Installation with version up to 1.20.2 throwing an error #932

Open Razzwan opened 3 years ago

Razzwan commented 3 years ago

Describe the bug When I trying to install new version of 3box (up to 1.20.2) tryed all of them: 1.21.0, 1.22.0, 1.22.1, 1.22.2 I am getting such error during installation:

 implicitly declaring library function 'memcpy' with type 'void *(void *, const
      void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]

To Reproduce Steps to reproduce the behavior:

  1. Try to install the package older than 1.20.2 on mac OS

Expected behavior Installation finished succesfully

Screenshots

Desktop (please complete the following information):

scottrepreneur commented 3 years ago

I'm seeing this also on Big Sur.

The bcrypto library is a dependency of ipfs so not sure if we should be asking them to update instead. Thanks for reporting @Razzwan

adamsoffer commented 3 years ago

@scottrepreneur @Razzwan adding a yarn resolution pointing to the latest version of bcrypto fixed the issue for me.

"resolutions": {
  "bcrypto": "5.4.0"
}