Skip to content

Correct tsc options to prevent TS2834 error? #1031

@arlac77

Description

@arlac77

After upgrading to v9.0.0 I have some difficulties to set the correct tsc options:

node_modules/execa/index.d.ts:6:8 - error TS2834: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.

6 } from './types/stdio/type';
         ~~~~~~~~~~~~~~~~~~~~

Neuter of the following combinations works

tsc  -t esnext -m esnext --module nodenext --moduleResolution nodenext
tsc  -t esnext -m esnext --module nodenext 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions