error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.


!!! error TS5107: Option 'module=System' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== 0.ts (0 errors) ====
    export class B {
        print() { return "I am B"}
    }
    
    export function foo() { return "foo" }
    
==== 1.ts (0 errors) ====
    export function backup() { return "backup"; }
    
==== 2.ts (0 errors) ====
    declare var console: any;
    class C {
        private myModule = import("./0");
        method() {
            const loadAsync = import("./0");
            this.myModule.then(Zero => {
                console.log(Zero.foo());
            }, async err => {
                console.log(err);
                let one = await import("./1");
                console.log(one.backup());
            });
        }
    }
    
    export class D {
        private myModule = import("./0");
        method() {
            const loadAsync = import("./0");
            this.myModule.then(Zero => {
                console.log(Zero.foo());
            }, async err => {
                console.log(err);
                let one = await import("./1");
                console.log(one.backup());
            });
        }
    }