Skip to content

Unexpected multiple outputs #33184

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
olmobrutall opened this issue Sep 1, 2019 · 1 comment · Fixed by #33216
Closed

Unexpected multiple outputs #33184

olmobrutall opened this issue Sep 1, 2019 · 1 comment · Fixed by #33216
Assignees
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue

Comments

@olmobrutall
Copy link

olmobrutall commented Sep 1, 2019

TypeScript Version: 3.6.2
After upgrating to TS 3.6.2, everithing else the same, webpack + ts-loader is not able to generate code anymore. Without transpileOnly:true works, but it's a big performance panalty.

Note: I'm using transpileOnly:true for webpack generation and transpileOnly:false + noEmit in MsBuild/VisualStudio.

Code
https://github.com/signumsoftware/southwind/tree/TS36/Southwind.React
https://github.com/signumsoftware/southwind/blob/TS36/Southwind.React/tsconfig.json

Expected behavior:
Generates javascript with webpack, ts-loader and with transpileOnly:true

Actual behavior:

=== undefined. Unexpected multiple outputs, file: D:/Signum/southwind/Southwind.React/ts_out/tsconfig.tsbuildinfo
    at Object.assertEqual (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:2056:17)
    at Object.writeFile (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:112241:30)
    at Object.__assign.writeFile (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:92029:210)
    at Object.writeFile (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:12098:14)
    at emitBuildInfo (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:86238:16)
    at emitSourceFileOrBundle (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:86205:13)
    at forEachEmittedFile (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:85999:28)
    at Object.emitFiles (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:86184:9)
    at emitWorker (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:92134:33)
    at D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:92095:66
    at runWithCancellationToken (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:92185:24)
    at Object.emit (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:92095:20)
    at Object.transpileModule (D:\Signum\southwind\Southwind.React\node_modules\typescript\lib\typescript.js:112261:17)
    at getTranspilationEmit (D:\Signum\southwind\Southwind.React\node_modules\ts-loader\dist\index.js:283:74)
    at successLoader (D:\Signum\southwind\Southwind.React\node_modules\ts-loader\dist\index.js:66:15)
    at Object.loader (D:\Signum\southwind\Southwind.React\node_modules\ts-loader\dist\index.js:22:12)
@VitProg
Copy link

VitProg commented Sep 2, 2019

We have the same problem on our project after updating to 3.6.2(

@sheetalkamat sheetalkamat self-assigned this Sep 3, 2019
@sheetalkamat sheetalkamat added Bug A bug in TypeScript Fix Available A PR has been opened for this issue labels Sep 3, 2019
@sheetalkamat sheetalkamat added this to the TypeScript 3.6.3 milestone Sep 3, 2019
typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this issue Sep 3, 2019
Component commits:
5de0303 Fix transpiling when options specify incremental or tsbuildinfofile Fixes microsoft#33184

0589d2d Value for transpile option in CommandLineOption
timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this issue Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants