Skip to content

TS6307 caused by ts files in excluded directory #27069

@jamesamcl

Description

@jamesamcl

TypeScript Version: 3.1.0-dev.20180913

Search Terms: TS6307

Code

For example:

  • Have a dependency in node_modules which contains .ts files.
  • Exclude node_modules in tsconfig.json
  • Build with tsc -b -v.

Expected behavior:

As node_modules is excluded, the files should be ignored.

Actual behavior:

error TS6307: File '/foo/bar/node_modules/somemodule/something.ts' is not in project file list. Projects must list all files or use an 'include' pattern.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions