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
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
2
+
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
+
tests/cases/compiler/a.js(2,8): error TS8009: '?' can only be used in a .ts file.
4
+
tests/cases/compiler/a.js(4,8): error TS8009: '?' can only be used in a .ts file.
5
+
6
+
7
+
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
8
+
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
9
+
==== tests/cases/compiler/a.js (2 errors) ====
10
+
class C {
11
+
foo?() {
12
+
~
13
+
!!! error TS8009: '?' can only be used in a .ts file.
14
+
}
15
+
bar? = 1;
16
+
~
17
+
!!! error TS8009: '?' can only be used in a .ts file.
error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
2
-
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
-
tests/cases/compiler/a.js(1,5): error TS8011: 'type arguments' can only be used in a .ts file.
1
+
tests/cases/compiler/a.jsx(1,5): error TS8011: 'type arguments' can only be used in a .ts file.
2
+
tests/cases/compiler/a.jsx(2,5): error TS8011: 'type arguments' can only be used in a .ts file.
3
+
tests/cases/compiler/a.jsx(3,6): error TS8011: 'type arguments' can only be used in a .ts file.
4
+
tests/cases/compiler/a.jsx(4,6): error TS8011: 'type arguments' can only be used in a .ts file.
4
5
5
6
6
-
!!! error TS5055: Cannot write file 'tests/cases/compiler/a.js' because it would overwrite input file.
7
-
!!! error TS5055: Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
8
-
==== tests/cases/compiler/a.js (1 errors) ====
7
+
==== tests/cases/compiler/a.jsx (4 errors) ====
9
8
Foo<number>();
10
9
~~~~~~
10
+
!!! error TS8011: 'type arguments' can only be used in a .ts file.
11
+
Foo<number>``;
12
+
~~~~~~
13
+
!!! error TS8011: 'type arguments' can only be used in a .ts file.
14
+
<Foo<number>></Foo>;
15
+
~~~~~~
16
+
!!! error TS8011: 'type arguments' can only be used in a .ts file.
17
+
<Foo<number>/>;
18
+
~~~~~~
11
19
!!! error TS8011: 'type arguments' can only be used in a .ts file.
0 commit comments