Closed radicaled closed 3 years ago
What happened:
Was attempting to use both the old Kin SDK and the new Kin SDK in parallel for a clean switch-over, but doing so caused a dependency issue for tweetnacl
because @solana/web3.js
doesn't pin the required version of tweetnacl
correctly. It needs >= 1.0.2
but will accept any version of 1.0.0
, so the dependency resolver ended up resolving to 1.0.1
, which does not have the API it requires.
How I solved it:
Removed old SDK; will make breaking upgrade in production.
When trying to use a version of
kin-sdk-v2
> 0.3.0, the following error occurs when requiring the Kin SDK:The optional dependencies
sodium-native
anded25519
are not present, as they did not compile successfully.This is a Typescript project, node 12.9.0. We are targeting ES2017.