Skip to content

TypeScript Natively & node_modules #61634

@glazkoag

Description

@glazkoag

What is the problem this feature will solve?

Please add support type stripping in node_modules. I was unaware of this behavior (#57215) and encountered difficulties while developing my project: https://www.npmjs.com/package/@fatec-ru/plcjs

After publishing the project to npmjs - which was fully developed using the "Running TypeScript Natively" concept (https://nodejs.org/en/learn/typescript/run-natively) - I faced this issue (ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING).

What is the feature you are proposing to solve the problem?

Ideally, there should be a --flag that enables cleaning type declarations in node_modules.

What alternatives have you considered?

Bun is an alternative, but in my opinion it is still very immature and far behind Node.js (especially regarding the debugger). However, the future definitely belongs to "Running TypeScript Natively."

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    Status

    Awaiting Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions