Skip to content

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

Description

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 Andrew Branch (@andrewbranch) Matt Bierner (@mjbvz)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions