ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property

please make sure it is in your tsconfig via the 'files' or 'include' property. angular 9
is missing from the typescript compilation angular 9
ng -v typescript error
file not found in typescript
tsconfig include
in-memory-data.service.ts is missing from the typescript compilation
add `node` to the types field in your tsconfig.
tsconfig extends paths

I have upgraded the angular 4 application to angular 6. I have basically two projects. The parent project is packaged and referenced in the child project. The screen shot below shows parent project folder called @wtw that is referenced in the client project. The @wtw folder is under the node_modules folder. The child project was building the parent package fine when it was in Angular version 4. Ever since the upgrade has been done to 6 it complains of ts files under the wtw folder seems missing from the TypeScript compilation. Do I need to explicitly include the path in the tsConfig file.

I tried to add the following in the tsConfig but no difference

"inlcude": [
    "node_modules/@wtw/**/*"
  ]

tsConfig file

{
  "compileOnSave": false,

  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "baseUrl": "src",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types",
      "type-definition"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  },
  "inlcude": [
    "node_modules/@wtw/**/*"
  ]
}

angular.json file

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "app": {
      "root": "",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "irm",
      "schematics": {},
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "../wwwroot",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.app.json",
            "assets": [
              "src/assets",
              "src/favicon.ico",
              "src/favicon.png",
              "src/web.config",
              {
                "glob": "**/*",
                "input": "../node_modules/@wtw/platform/assets",
                "output": "./assets"
              },
              {
                "glob": "**/*",
                "input": "../assets",
                "output": "./assets"
              }
            ],
            "styles": [
              "../IRM.ClientSide/node_modules/@wtw/platform/styling/platform.scss"
            ],
            "scripts": [
              "../IRM.ClientSide/node_modules/jsoneditor/dist/jsoneditor.js"
            ]
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "environments/environment.ts",
                  "with": "environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": false,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "app:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "app:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "app:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "test.ts",
            "polyfills": "polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "styles": [],
            "scripts": [],
            "assets": []
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "src/tsconfig.app.json",
              "src/tsconfig.spec.json"
            ],
            "exclude": [
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts",
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts",
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts"
            ]
          }
        }
      }
    },
    "pdf": {
      "root": "src",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "irm",
      "schematics": {},
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "../pdf",
            "index": "pdf.html",
            "main": "pdf.ts",
            "polyfills": "polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "assets": [
              "assets",
              "favicon.ico",
              {
                "glob": "**/*",
                "input": "../node_modules/@wtw/platform/assets",
                "output": "./assets"
              }
            ],
            "styles": [
              "./styles.scss"
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "environments/environment.ts",
                  "with": "environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": false,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "app:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "app:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "app:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "test.ts",
            "polyfills": "polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "styles": [],
            "scripts": [],
            "assets": []
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "src/tsconfig.app.json",
              "src/tsconfig.spec.json"
            ],
            "exclude": [
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts",
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts",
              "**/node_modules/**/*",
              "**/src/app/api/**/*",
              "**/src/polyfills.ts"
            ]
          }
        }
      }
    },
    "app-e2e": {
      "root": "e2e/",
      "projectType": "application",
      "architect": {
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "app:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "app:serve:production"
            }
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": "e2e/tsconfig.e2e.json",
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    }
  },
  "defaultProject": "app"
}

I had same problem, after 2 hour searching i finally found solution. In my case (i'm using Angular), i just set typescript related path into tsconfig.app.json(ATTENTION: file name is not tsconfig.json). another way is set entire typescript path into include section in tsconfig.app.json file (see below example).

in tsconfig.app.json change:

"files": [
    ...,
    "node_modules/jqwidgets-scripts/jqwidgets-ts/angular_jqxbargauge.ts"
  ],

or

"include": [
    ...,
    "node_modules/jqwidgets-scripts/jqwidgets-ts/**/*.ts"
  ],

ts is missing from the TypeScript compilation. Please make , ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. #14592. Closed. Please make sure it is in your tsconfig via the 'files' or'include' property 4 Importing classes from files that import other classes results in failed compile for Angular 8 when using WebWorker

You've done it almost correctly, but it needs some corrections:

  1. You have a typo in the key "include"
  2. You need to include directory under ../node_modules, not bare node_modules
  3. You also need to include the project directory to include, otherwise your code won't be compiled

So the correct way would be:

"include": [
    ".",
    "../node_modules/@wtw/**/*"
]

[Angular9], Please make sure it is in your tsconfig via the 'files' or 'include' property #17804 \homepage-under-fold.module.ts is missing from the TypeScript compilation. Exception or Error ode_modules\date-filtersjs\src\filter.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. [ng] The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library.

I came across this question when i was having the following errors:

  1. module.ts is missing from the typescript compilation. please make sure it is in your tsconfig via the 'files' or 'include' property

Solution:

I fixed the issue by using Dynamic import instead. (Though, dynamic import through another error, please see solution below)

  1. error ts1323: dynamic import is only supported when '--module' flag is 'commonjs' or 'esnext

Solution:

Open these files: tsconfig.json, tsconfig.app.json and tsconfig.tns.json locate something like "module": "es2015" and update to "module": "esNext"

This approach work for me and i hope it will do you too

Module build failed ts is missing from the TypeScript compilation , Module build failed ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property - angular. /var/www/frontend-skeleton/node_modules/@myllc/application-core/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an

I resolved the same problem by adding the zone-flags.ts in tsconfig.app.ts file section as shown below

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "./out-tsc/app",
    "types": []
  },
  "angularCompilerOptions": {
    "enableIvy": true
  },
  "files": [
    "src/main.ts",
    "src/polyfills.ts",
    "src/zone-flags.ts", <--- This resolved
  ],
  "include": [
    "src/**/*.d.ts"
  ]
}

Angular 5: missing from the TypeScript compilation. Please make , ClientSide\node_modules\#wtw\platform\services\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or  [Angular9] - module is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property #17804

I solve it in my case by removing mismatch in the filename and the reference to the file in an import statement.

Error compiling Angular project 5 "is missing from the TypeScript , F:\Xampp\htdocs\www\Angular\fidaliza\src\app\shared\objeto\Venda.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via  Both tsconfig.app.json and package.json contain this section "include": [ "/src/main.ts", "/src/polyfills.ts" ] But no matter what I try I still get this error: \polyfills.ts & \main.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

Unit tests not working after upgrade to angular 5 and mdb pr , TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or '​include' property. The missing file seems to be part of a third party library. TS  When I try to compile my program I get this error: Module build failed: Error: my path\File.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. Then I changed my tsconfig.app.json file to contain the include tag:

Angular5 :polyfills.ts & \main.ts is missing from the TypeScript , But no matter what I try I still get this error: \polyfills.ts & \main.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or​  Already found a bunch of articles suggesting to do "ng serve --preserve-symlinks" or to modify the "tsconfig.json" and/or "tsconfig.app.json" to include all the .ts files found under src/app folder. None of the approaches I found on my research seems to work.

tsconfig.json · TypeScript, The tsconfig.json file specifies the root files and the compiler options required to compile the compiler defaults to including all TypeScript ( .ts , .d.ts and .tsx ) files in the Files included using "include" can be filtered using the "exclude" property. By default all visible “ @types ” packages are included in your compilation. C:\src\SchoolsMadeEasy\src\app\Payment\payment-details\payment-details.component.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. I am loosely following heroes tutorial for using routing. Any ideas why my code is not compiling?

Comments
  • Thanks so much. It worked :)
  • Thanks i added that but now i am getting an error No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["../../node_modules/@wtw/**/*"]' and 'exclude' paths were '["*/.sp ec.ts","*/.stub.ts","test/**/*.ts"]'.
  • Why do you have ../ twice? And you should also add the project directory to include. I'll update my answer.
  • error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["../.","../../node_modules/@wtw/**/*"]' and 'exclude' paths were '[" */.spec.ts","*/.stub.ts","test/**/*.ts"]'.
  • Are you adding the include to the root tsconfig.json? Try adding it to tsconfig.app.json instead.