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: src/compiler/diagnosticMessages.json
+1-9
Original file line number
Diff line number
Diff line change
@@ -4265,7 +4265,7 @@
4265
4265
"category": "Error",
4266
4266
"code": 5094
4267
4267
},
4268
-
"Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later.": {
4268
+
"Option '{0}' can only be used when 'module' is set to 'es2015' or later.": {
4269
4269
"category": "Error",
4270
4270
"code": 5095
4271
4271
},
@@ -4281,14 +4281,6 @@
4281
4281
"category": "Error",
4282
4282
"code": 5098
4283
4283
},
4284
-
"Import assignment is not allowed when 'moduleResolution' is set to 'bundler'. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead.": {
4285
-
"category": "Error",
4286
-
"code": 5099
4287
-
},
4288
-
"Export assignment cannot be used when 'moduleResolution' is set to 'bundler'. Consider using 'export default' or another module format instead.": {
4289
-
"category": "Error",
4290
-
"code": 5100
4291
-
},
4292
4284
"Flag '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '\"ignoreDeprecations\": \"{2}\"' to silence this error.": {
"Found 'package.json' at '/node_modules/conditions/package.json'.",
8
+
"Entering conditional exports.",
9
+
"Saw non-matching condition 'node'.",
10
+
"Matched 'exports' condition 'default'.",
11
+
"Using 'exports' subpath '.' with target './index.web.js'.",
12
+
"File name '/node_modules/conditions/index.web.js' has a '.js' extension - stripping it.",
13
+
"File '/node_modules/conditions/index.web.ts' does not exist.",
14
+
"File '/node_modules/conditions/index.web.tsx' does not exist.",
15
+
"File '/node_modules/conditions/index.web.d.ts' exists - use it as a name resolution result.",
16
+
"Resolved under condition 'default'.",
17
+
"Exiting conditional exports.",
18
+
"Resolving real path for '/node_modules/conditions/index.web.d.ts', result '/node_modules/conditions/index.web.d.ts'.",
19
+
"======== Module name 'conditions' was successfully resolved to '/node_modules/conditions/index.web.d.ts' with Package ID 'conditions/[email protected]'. ========"
Copy file name to clipboardexpand all lines: tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt
+4-4
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo
5
5
Root file specified for compilation
6
6
/project/main.ts(3,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
7
7
/project/main.ts(7,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
8
-
/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' instead?
8
+
/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?
9
9
/project/main.ts(11,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
10
10
/project/main.ts(12,16): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled.
11
11
/project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set.
12
12
/project/main.ts(16,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
13
-
/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' instead?
13
+
/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?
14
14
15
15
16
16
!!! error TS5056: Cannot write file 'out/b.js' because it would be overwritten by multiple input files.
@@ -68,7 +68,7 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo
68
68
!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
69
69
import {} from "./b.d.ts";
70
70
~~~~~~~~~~
71
-
!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b' instead?
71
+
!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b.js' instead?
72
72
import type {} from "./b.d.ts";
73
73
74
74
import {} from "./c.ts";
@@ -96,5 +96,5 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo
96
96
import {} from "./a.ts";
97
97
import {} from "./a.d.ts";
98
98
~~~~~~~~~~
99
-
!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead?
99
+
!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a.js' instead?
0 commit comments