diff --git a/examples/esm-http-ts/tsconfig.json b/examples/esm-http-ts/tsconfig.json index e8a0f805ca..5f821d66c7 100644 --- a/examples/esm-http-ts/tsconfig.json +++ b/examples/esm-http-ts/tsconfig.json @@ -6,7 +6,7 @@ /* Modules */ "module": "ESNext" /* Specify what module code is generated. */, "rootDir": "." /* Specify the root folder within your source files. */, - "moduleResolution": "nodenext" /* Specify how TypeScript looks up a file from a given module specifier. */, + "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */, "resolveJsonModule": true /* Enable importing .json files. */, /* Emit */ diff --git a/tsconfig.base.esnext.json b/tsconfig.base.esnext.json index 75131c64f3..7875da812e 100644 --- a/tsconfig.base.esnext.json +++ b/tsconfig.base.esnext.json @@ -4,6 +4,6 @@ "module": "esnext", // target should be aligned with tsconfig.base.json "target": "es2017", - "moduleResolution": "node10" + "moduleResolution": "node" }, } diff --git a/tsconfig.base.json b/tsconfig.base.json index 24b51d1ed5..cf1373d16c 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -8,7 +8,7 @@ "forceConsistentCasingInFileNames": true, "incremental": true, "inlineSources": true, - "module": "NodeNext", + "module": "CommonJS", "newLine": "LF", "noEmitOnError": true, "noFallthroughCasesInSwitch": true,