0

I'm following Adding File to Azure Storage Blob from Angular to save files on azure storage but im getting following error when i run serve command.

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

1 Answers1

0

You need to target esnext for Symbol.asyncIterator to work. Check this answer for more information.

PramodValavala
  • 6,026
  • 1
  • 11
  • 30