Fix typescript error which only occurs on macOS.
Description
yarn build:ts
was failing only on MacOS, not within the docker image used by CI, with this error:
yarn build:ts
packages/web-ide-vscode-extension/src/main.ts:47:19 - error TS2550: Property 'allSettled' does not exist on type 'PromiseConstructor'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2020' or later.
47 await Promise.allSettled([
~~~~~~~~~~
Found 1 error.
Changing to "lib": "es2020"
in tsconfig.base.json
fixed it.
Tasks
- Fix typescript error which only occurs on macOS (see detailed note in commit for
tsconfig.base.json
). - This required additional Language Option upgrades in eslint config as well (see changes and notes in
.eslintrc.js
).
Edited by Chad Woolley