You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to load the plugin into angular7 project I get an Error ERROR in node_modules/web-streams-polyfill/dist/types/polyfill.d.ts(1,21): error TS2727: Cannot find lib definition for 'es2018.asynciterable'. Did you mean 'esnext.asynciterable'?
I did some investigations and it seems the cause is typescript version I have. 3.2.2
NOTE it works as expected with typescript version 3.5.3 that I have in angular 8 app
I can't upgrade typescript version since it's required by angular 7. The only way to make your polyfill to work is to upgrade to angular 8.
It seems that in typescript 3.2 asynciterable is under esnext.asynciterable instead of es2018.asynciterable.
Please advise. Thank you in advanced.
The text was updated successfully, but these errors were encountered:
Indeed, TypeScript 3.2 still considered async iterables to be an upcoming JavaScript feature, so they were still in esnext.asynciterable.
Interestingly, TypeScript 3.5 has both es2018.asynciterable and esnext.asynciterablefor backwards compatibility. So I can make the polyfill use the old name and support both old and new TypeScript versions.
When I try to load the plugin into angular7 project I get an Error
ERROR in node_modules/web-streams-polyfill/dist/types/polyfill.d.ts(1,21): error TS2727: Cannot find lib definition for 'es2018.asynciterable'. Did you mean 'esnext.asynciterable'?
I did some investigations and it seems the cause is typescript version I have. 3.2.2
NOTE it works as expected with typescript version 3.5.3 that I have in angular 8 app
I can't upgrade typescript version since it's required by angular 7. The only way to make your polyfill to work is to upgrade to angular 8.
It seems that in typescript 3.2
asynciterable
is under esnext.asynciterable instead of es2018.asynciterable.Please advise. Thank you in advanced.
The text was updated successfully, but these errors were encountered: