Skip to content

Commit ccdb4b8

Browse files
authored
Update FAQ.md
Fix typo on error TS5055 section of the FAQs
1 parent d6867c4 commit ccdb4b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ There is no way now to indicate an `“include”` to a file outside the current
13741374
13751375
For a TypeScript file, the TypeScript compiler by default emits the generated JavaScript files in the same directory with the same base file name.
13761376
Because the TypeScript files and emitted JavaScript files always have different file extensions, it is safe to do so.
1377-
However, if you have set the `allowJs` compiler option to `true` and didn't set any emit output options (`outFile` and `outDir`), the compiler will try to emit JavaScript source files by the same rule, which will result in the emitted JavaScript file having the same file name with the source file. To avoid accidently overwriting your source file, the compiler will issue this warning and skip writing the output files.
1377+
However, if you have set the `allowJs` compiler option to `true` and didn't set any emit output options (`outFile` and `outDir`), the compiler will try to emit JavaScript source files by the same rule, which will result in the emitted JavaScript file having the same file name with the source file. To avoid accidentally overwriting your source file, the compiler will issue this warning and skip writing the output files.
13781378
13791379
There are multiple ways to solve this issue, though all of them involve configuring compiler options, therefore it is recommended that you have a `tsconfig.json` file in the project root to enable this.
13801380
If you don't want JavaScript files included in your project at all, simply set the `allowJs` option to `false`;

0 commit comments

Comments
 (0)