Skip to content

Error due to inconsistent code between Typescript nightly 4.2.0-dev.20210106 and @types/node@14.14.20Β #42229

@Luxcium

Description

@Luxcium

Bug Report

πŸ•— Version & Regression Information

Version 4.2.0-dev.20210106 and Version 4.2.0-dev.20210105

⏯ Playground Link

πŸ‘¨β€πŸ’» actual tsconfig.json

Link with relevant actual tsconfig.json

πŸ’» Code

πŸ™

code --install-extension ms-vscode.vscode-typescript-next
fnm default 15
fnm use default
yarn add -D typescript@next @types/node@14.14.20
npm -g i typescript@next
yarn global add typescript@next
npm install -g npm@7
yarn global add yarn@latest
yarn global add npm@7
tsc --version
node --version
npm --version
tsc

πŸ™‚

code --uninstall-extension ms-vscode.vscode-typescript-next
fnm default 14
fnm use 14
yarn add typescript@latest @types/node@14.14.20
npm -g i typescript@latest
yarn global add typescript@latest
npm install -g npm@latest
yarn global add yarn@latest
yarn global add npm@latest
tsc --version
node --version
npm --version
tsc

πŸ™ Actual behavior

when using tsc --version; node --version
tsc: Version 4.2.0-dev.20210106
node: v14.15.4

Screenshot_20210106_095257

when using tsc --version; node --version
tsc: Version 4.2.0-dev.20210106
node: v15.5.1

Screenshot_20210106_095904

πŸ™‚ Expected behavior

on the left Expected behavior on the right Actual behavior:

Screenshot_misc_backup_temporary-removed_scripts_ts-next sh - questrade-ts_20210106_103027

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions