Skip to content

error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["node_modules"]'. #17155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hms181231 opened this issue Jul 13, 2017 · 5 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@hms181231
Copy link

can't parsing tsconfig.json

error TS18003: No inputs were found in config file 'tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["node_modules"]'.

tsconfig.json:

{
"compileOnSave": true,
"compilerOptions": {
"experimentalDecorators": true,
"sourceMap": true,
"strict": true,
"module": "es2015",
"moduleResolution": "node",
"target": "es5"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules"
]
}

webpack config:

{
test: /.tsx?$/,
loader: 'ts-loader',
include: [resolve('src')],
options: {
appendTsSuffixTo: [/.vue$/],
}
},

use:
vue2, webpack2, typescript2.4.1

@ghost
Copy link

ghost commented Jul 13, 2017

Are you using tsc to compile your project?
Is there a src directory next to your tsconfig.json that contains .ts files?

@hms181231
Copy link
Author

this ok now, thank. .ts files write wrong.

@ghost ghost added the Question An issue which isn't directly actionable in code label Jul 17, 2017
@ghost
Copy link

ghost commented Aug 4, 2017

I am getting the same error I also have .ts files in src folder. My package.json is like this


{
  "compilerOptions": {
    "rootDir": ".",
    "experimentalDecorators": true,
    "module": "es2015",
    "moduleResolution": "node",
    "noUnusedParameters": true,
    "strictNullChecks": true,
    "skipLibCheck": true,
    "outDir": "./dist/packages/all",
    "target": "es2015",
    "lib": ["es5", "es2015", "dom"],
    "types": ["jasmine"],
    "baseUrl": ".",
    "paths": {
      "@angular/material": ["./src/lib/public_api.ts"],
      "@angular/cdk/*": ["./src/cdk/*"],
      "@angular/material-examples": ["./src/material-examples"],
      "material2-build-tools": ["./tools/package-tools"]
    }
  },
  "include": [
 "/"
  ],
  "exclude": [
    "/"
  ]
}

@mhegazy
Copy link
Contributor

mhegazy commented Aug 21, 2017

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

@mhegazy mhegazy closed this as completed Aug 21, 2017
@ghost
Copy link

ghost commented Aug 21, 2017

@saishbhende24 Maybe remove the "exclude"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

2 participants