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
b.ts(1,1): error TS2712: A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.
3
+
b.ts(1,14): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
4
+
5
+
6
+
!!! error TS2468: Cannot find global value 'Promise'.
7
+
==== a.ts (0 errors) ====
8
+
export function foo() {
9
+
console.log("foo from a");
10
+
}
11
+
12
+
==== b.ts (2 errors) ====
13
+
import.defer("a").then(ns => {
14
+
~~~~~~~~~~~~~~~~~
15
+
!!! error TS2712: A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.
16
+
~~~
17
+
!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
b.ts(1,1): error TS18060: Deferred imports are only supported when the '--module' flag is set to 'esnext'.
2
+
b.ts(1,14): error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
3
+
4
+
5
+
==== b.ts (2 errors) ====
6
+
import.defer("a").then(ns => {
7
+
~~~~~~~~~~~~~~~~~
8
+
!!! error TS18060: Deferred imports are only supported when the '--module' flag is set to 'esnext'.
9
+
~~~
10
+
!!! error TS2792: Cannot find module 'a'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
0 commit comments