You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gulp and tsc behaves the same, but I suspect I might be missing or missusing something.
NOTE: as soon as "composite": true is removed from tsconfig, gulp doesn't complain any more.
Actual behavior:
While tsc runs fine, gulp fails with the following.
npx gulp
C:\s\mytest\m_node_lib> npx gulp
[10:30:12] Using gulpfile C:\s\mytest\m_node_lib\gulpfile.js
[10:30:12] Starting 'default'...
[10:30:13] input src\index.ts
[10:30:13] input 1 item
[10:30:15] 'default' errored after 2.94 s
[10:30:15] TypeError: Cannot read property 'length' of undefined
at Object.writeFile (C:\s\mytest\m_node_lib\node_modules\gulp-typescript\release\compiler.js:81:33)
at writeFile (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:16515:10)
at emitBuildInfo (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:109458:7)
at emitSourceFileOrBundle (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:109419:7)
at forEachEmittedFile (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:109176:18)
at emitFiles (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:109387:5)
at emitWorker (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:116758:26)
at C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:116743:53
at runWithCancellationToken (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:116832:16)
at Object.emit (C:\s\mytest\m_node_lib\node_modules\typescript\lib\typescript.js:116743:22)
Expected behavior:
gulp and tsc behaves the same, but I suspect I might be missing or missusing something.
NOTE: as soon as
"composite": true
is removed from tsconfig, gulp doesn't complain any more.Actual behavior:
While tsc runs fine, gulp fails with the following.
npx gulp
Code:
gulpfile.js
package.json
src\index.ts
tsconfig.json
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: