"Error: No output files" with `"noEmitOnError": true` in tsconfig.json
stoneChen opened this issue ยท 1 comments
stoneChen commented
This problem confused me several hours ๐.
tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"outDir": "lib",
"noEmitOnError": true
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
]
}
test/index.ts:
import assert = require('assert');
const n1: number = 1;
const n2: number = 2;
assert(n1 !== n2);
run:
# npm scripts: "test": "mocha --compilers ts:espower-typescript/guess test/index.ts",
npm test
result:
Error: No output files
Finally found that, setting noEmitOnError
to false
, then everything work fine.
I think there is something wrong with typescript-simple
.
teppeis commented
fixed in v9