Closed viT-1 closed 4 years ago
Tested same tsconfig with npm script ttsc --project ./tsconfig.json
it's ok, but gulp-typescript configuration is not.
Fixed in #627
@ivogabe Last released version in npmjs is 5.0.1 When this fix will be released?
I plan to fix some other problems as well. I hope to release it this week
Published as 6.0.0-alpha.1.
No, 6.0 is not fixed for me =(
TypeError: Cannot read property 'file' of undefined
at Output.getError (xxx\node_modules\gulp-typescript\release\output.js:139:29)
at Output.diagnostic (xxx\node_modules\gulp-typescript\release\output.js:144:25)
at ProjectCompiler.emit (xxx\node_modules\gulp-typescript\release\compiler.js:131:33)
at ProjectCompiler.inputDone (xxx\node_modules\gulp-typescript\release\compiler.js:80:18)
at CompileStream.end (xxx\node_modules\gulp-typescript\release\project.js:125:31)
at DestroyableTransform.onend (xxx\node_modules\readable-stream\lib\_stream_readable.js:577:10)
at Object.onceWrapper (events.js:286:20)
at DestroyableTransform.emit (events.js:203:15)
at DestroyableTransform.EventEmitter.emit (domain.js:466:23)
at endReadableNT (xxx\node_modules\readable-stream\lib\_stream_readable.js:1010:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Sorry, you were having a different issue as what I thought. Can you share a TypeScript file on which you see this error? That would make it easier for me to debug this.
@ivogabe : Sorry, i'm checking your library on small project & everything is working, thanks!
Great, that's good news :)
Expected behavior: Gulp task is completed
Actual behavior: Gulp task throws error TypeError: Cannot read property 'file' of undefined at Output.getError (C:\Projects\systemjs-ts-es6\node_modules\gulp-typescript\release\output.js:138:29) at Output.diagnostic (C:\Projects\systemjs-ts-es6\node_modules\gulp-typescript\release\output.js:143:25) at ProjectCompiler.emit (C:\Projects\systemjs-ts-es6\node_modules\gulp-typescript\release\compiler.js:129:33) at ProjectCompiler.inputDone (C:\Projects\systemjs-ts-es6\node_modules\gulp-typescript\release\compiler.js:80:18) at CompileStream.end (C:\Projects\systemjs-ts-es6\node_modules\gulp-typescript\release\project.js:122:31) at DestroyableTransform.onend (C:\Projects\systemjs-ts-es6\node_modules\readable-stream\lib_stream_readable.js:577:10) at Object.onceWrapper (events.js:286:20) at DestroyableTransform.emit (events.js:203:15) at DestroyableTransform.EventEmitter.emit (domain.js:466:23) at endReadableNT (C:\Projects\systemjs-ts-es6\node_modules\readable-stream\lib_stream_readable.js:1010:12)
Your gulpfile.esm.js: