aws-mobile-ionic-sample icon indicating copy to clipboard operation
aws-mobile-ionic-sample copied to clipboard

cannot find buffer error in aws-mobile-ionic-sample

Open prasanna-arokee opened this issue 8 years ago • 4 comments

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'

check this link for error and screenshot details

prasanna-arokee avatar Mar 03 '18 15:03 prasanna-arokee

I'm also getting same error. any solution ?

kanthedgaurav avatar Mar 15 '18 13:03 kanthedgaurav

I also faced same and followed below steps and it solved this issue.

  1. npm install --save-dev @types/node in aws-mobile-ionic-sample\client folder
  2. 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

Ramesh21 avatar Apr 01 '18 18:04 Ramesh21

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.

prasanna-arokee avatar Apr 02 '18 03:04 prasanna-arokee

Not sure about these errors!

Ramesh21 avatar Apr 02 '18 13:04 Ramesh21