Open
Description
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
Labels
No labels