Skip to content

include and exclude have no effect #207

Open
@GreenDjango

Description

@GreenDjango

Hi,

tsconfig.json files specified using extends will have include and exclude paths relative to their location, as per the include docs:

These filenames are resolved relative to the directory containing the tsconfig.json file.

So a config like Next.js base install with npm will produce a typescript error:

error TS18003: No inputs were found in config file '/home/user/my-project/tsconfig.json'.
Specified 'include' paths were '["node_modules/@tsconfig/next/next-env.d.ts","node_modules/@tsconfig/next/**/*.ts",...]'
and 'exclude' paths were '["node_modules/@tsconfig/next/node_modules"]'.

for a tsconfig.json like:

{
  "extends": ["@tsconfig/next/tsconfig.json"],
}

Not specify include and exclude in base template can remove ambiguity

Have a nice day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions