Demo of using the kin-sdk in a Angular app.
You need to set "skipLibCheck": true
in tsconfig.
// In your polyfill file, eg: src/polyfill.ts
;(window as any).global = window
global.Buffer = global.Buffer || require('buffer').Buffer
There is an incompatibility with the 'buffer-layout' package in Angular.
ERROR Error: Uncaught (in promise): Error: Non-base58 character
The workaround is to patch node_modules/buffer-layout/lib/Layout.js
, the patch is in ./patches/buffer-layout+1.2.1.patch
.
yarn install
yarn serve
yarn build