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
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported.errors.txt.diff
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/compiler/moduleResolutionWithExtensions_notSupported2.errors.txt.diff
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
/project/main.ts(8,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b.js' instead?
4
4
/project/main.ts(11,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
5
5
/project/main.ts(12,16): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
6
+
/project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set.
6
7
/project/main.ts(16,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
7
8
/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a.js' instead?
8
9
@@ -43,7 +44,7 @@
43
44
==== /project/e.txt.ts (0 errors) ====
44
45
export {};
45
46
46
-
==== /project/main.ts (6 errors) ====
47
+
==== /project/main.ts (7 errors) ====
47
48
import {} from "./a";
48
49
import {} from "./a.js";
49
50
import {} from "./a.ts";
@@ -66,6 +67,8 @@
66
67
import {} from "./c.tsx";
67
68
~~~~~~~~~
68
69
!!! error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
70
+
~~~~~~~~~
71
+
!!! error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set.
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/conformance/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).errors.txt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
/project/main.ts(8,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b.js' instead?
4
4
/project/main.ts(11,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
5
5
/project/main.ts(12,16): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
6
+
/project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set.
6
7
/project/main.ts(16,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
7
8
/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a.js' instead?
8
9
@@ -43,7 +44,7 @@
43
44
==== /project/e.txt.ts (0 errors) ====
44
45
export {};
45
46
46
-
==== /project/main.ts (6 errors) ====
47
+
==== /project/main.ts (7 errors) ====
47
48
import {} from "./a";
48
49
import {} from "./a.js";
49
50
import {} from "./a.ts";
@@ -66,6 +67,8 @@
66
67
import {} from "./c.tsx";
67
68
~~~~~~~~~
68
69
!!! error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
70
+
~~~~~~~~~
71
+
!!! error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set.
0 commit comments