gpt4 book ai didi

angular - 集成 'Buffer' 时无法在 ionic 应用程序中找到名称 'amazon-cognito-identity-js'

转载 作者:太空狗 更新时间:2023-10-29 19:28:46 27 4
gpt4 key购买 nike

enter image description here

cannot find name 'Buffer' in ionic app when integrating 'amazon-cognito-identity-js'

最佳答案

我在这里找到了解决方案:

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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com