如何解决使用 @azure/storage-blob 运行 Angular 应用程序时出错
我正在关注 Adding File to Azure Storage Blob from Angular 将文件保存在 azure 存储中,但在运行 serve 命令时出现以下错误。
node_modules/@azure/abort-controller/types/src/AbortSignal.d.ts(40,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@azure/abort-controller/types/src/AbortSignal.d.ts(46,16): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/@azure/core-paging/types/3.1/core-paging.d.ts(28,13): error TS2339: Property 'asyncIterator' does not exist on type 'SymbolConstructor'.
node_modules/@azure/core-paging/types/3.1/core-paging.d.ts(32,43): error TS2304: Cannot find name 'AsyncIterableIterator'.```
My Angular version is "@angular/cli": "~7.3.5" And "@azure/storage-blob": "^12.3.0".
Thanks in advance
解决方法
您需要定位到 esnext
才能使 Symbol.asyncIterator
工作。查看 this answer 了解更多信息。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。