Skip to content

Figure out how to deal with annoying node: prefix in auto-imports from @types/node #43842

@DanielRosenwasser

Description

@DanielRosenwasser

Nowadays @types/node ships with built-ins like fs as well as node:fs. Accidentally auto-importing these are extremely annoying if you're trying to target older versions of Node.js.

We should consider

  • inferring the best type of auto-import from your project
  • pick the older style of imports one until Node 16 14 becomes the last supported version
  • provide an option

CC @andrewbranch @mjbvz

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions