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
{{ message }}
Repository navigation
ES6 methods don't work with typescript syntax check #11621
Mel (@m3l7) thank you for opening this issue. I have confirmed this happens with the latest bits. This is a language service issue. Moving to that repo.
The issue here is that the tsconfig.json as listed above includes no files. The include list includes "src", but then the output directory is "src" as well. the compiler does not want to recompile the files it outputted last cycle, so it excludes the output directory by default. so the net results is no files to compile..
To solve this either:
use a different outDir
Do not set outDir at all, by default a .js file is emitted next to its source .ts file
sorry for the late reply.
not setting an outDir seems to fix. However, setting an outDir different from include array results in the debugger failing to start. (Cannot launch program 'api.ts'; setting the 'outFiles' attribute might help.')
But this seems like a different issue
Activity
waderyan commentedon Oct 14, 2016
From Mel (@m3l7) on October 13, 2016 11:27
the same happens with Promise
waderyan commentedon Oct 14, 2016
Mel (@m3l7) thank you for opening this issue. I have confirmed this happens with the latest bits. This is a language service issue. Moving to that repo.
mhegazy commentedon Oct 15, 2016
The issue here is that the tsconfig.json as listed above includes no files. The include list includes
"src", but then the output directory is"src"as well. the compiler does not want to recompile the files it outputted last cycle, so it excludes the output directory by default. so the net results is no files to compile..To solve this either:
outDirat all, by default a.jsfile is emitted next to its source.tsfile"exclude": []mhegazy commentedon Oct 15, 2016
I have logged #11650 to track showing an error message if the compilation included no files.
zontafil commentedon Oct 31, 2016
sorry for the late reply.
not setting an outDir seems to fix. However, setting an outDir different from include array results in the debugger failing to start. (Cannot launch program 'api.ts'; setting the 'outFiles' attribute might help.')
But this seems like a different issue