cannot find buffer error in aws-mobile-ionic-sample
I cloned it when I am running "Ionic serve" command. I am facing below Issue. please help me fix it. It was showing
Typescript Error Cannot find name 'Buffer'
I'm also getting same error. any solution ?
I also faced same and followed below steps and it solved this issue.
- npm install --save-dev @types/node in aws-mobile-ionic-sample\client folder
- Adding "typeRoots" and "types" to "compilerOptions" in tsconfig.json like below { "compilerOptions": { "typeRoots": [ "node_modules/@types" ], "types": [ "node" ] } }
ref: https://github.com/aws/amazon-cognito-identity-js/issues/460
Thank you, That code is working but getting some errors like Cannot find type definition file for 'paho-mqtt', Cannot find type definition file for 'zen-observable', Cannot find type definition file for 'zen-observable like errors. Will you please help me fix this issue.
Not sure about these errors!