最佳答案
我在这里找到了解决方案:
You actually need to add "types": ["node"] to the tsconfig.app.json file that the angular-cli creates in the src directory. By default, types is an empty array.
https://github.com/aws/aws-sdk-js/issues/1271#issuecomment-291658668
关于angular - 集成 'Buffer' 时无法在 ionic 应用程序中找到名称 'amazon-cognito-identity-js',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44775350/