mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 12:08:41 -06:00
Report positionless tsconfig option errors on compilerOptions key (#58254)
This commit is contained in:
parent
93451e8dd9
commit
e75f470be0
@ -313,6 +313,7 @@ import {
|
||||
toPath as ts_toPath,
|
||||
trace,
|
||||
tracing,
|
||||
tryCast,
|
||||
TsConfigSourceFile,
|
||||
TypeChecker,
|
||||
typeDirectiveIsEqualTo,
|
||||
@ -1618,6 +1619,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
// Map storing if there is emit blocking diagnostics for given input
|
||||
const hasEmitBlockingDiagnostics = new Map<string, boolean>();
|
||||
let _compilerOptionsObjectLiteralSyntax: ObjectLiteralExpression | false | undefined;
|
||||
let _compilerOptionsPropertySyntax: PropertyAssignment | false | undefined;
|
||||
|
||||
let moduleResolutionCache: ModuleResolutionCache | undefined;
|
||||
let actualResolveModuleNamesWorker: (
|
||||
@ -4400,7 +4402,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
}
|
||||
|
||||
if (options.checkJs && !getAllowJSCompilerOption(options)) {
|
||||
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs"));
|
||||
createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs");
|
||||
}
|
||||
|
||||
if (options.emitDeclarationOnly) {
|
||||
@ -4823,7 +4825,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
}
|
||||
});
|
||||
if (needCompilerDiagnostic) {
|
||||
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
||||
createCompilerOptionsDiagnostic(message, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4845,7 +4847,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
}
|
||||
});
|
||||
if (needCompilerDiagnostic) {
|
||||
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
||||
createCompilerOptionsDiagnostic(message, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4893,27 +4895,52 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
||||
!createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, ...args);
|
||||
|
||||
if (needCompilerDiagnostic) {
|
||||
createCompilerOptionsDiagnostic(message, ...args);
|
||||
}
|
||||
}
|
||||
|
||||
function createCompilerOptionsDiagnostic(message: DiagnosticMessageChain): void;
|
||||
function createCompilerOptionsDiagnostic(message: DiagnosticMessage, ...args: DiagnosticArguments): void;
|
||||
function createCompilerOptionsDiagnostic(message: DiagnosticMessage | DiagnosticMessageChain, ...args: DiagnosticArguments): void;
|
||||
function createCompilerOptionsDiagnostic(message: DiagnosticMessage | DiagnosticMessageChain, ...args: DiagnosticArguments): void {
|
||||
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
||||
if (compilerOptionsProperty) {
|
||||
// eslint-disable-next-line local/no-in-operator
|
||||
if ("messageText" in message) {
|
||||
programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
|
||||
programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile!, compilerOptionsProperty.name, message));
|
||||
}
|
||||
else {
|
||||
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
||||
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile!, compilerOptionsProperty.name, message, ...args));
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line local/no-in-operator
|
||||
else if ("messageText" in message) {
|
||||
programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
|
||||
}
|
||||
else {
|
||||
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
||||
}
|
||||
}
|
||||
|
||||
function getCompilerOptionsObjectLiteralSyntax() {
|
||||
if (_compilerOptionsObjectLiteralSyntax === undefined) {
|
||||
_compilerOptionsObjectLiteralSyntax = forEachPropertyAssignment(
|
||||
getTsConfigObjectLiteralExpression(options.configFile),
|
||||
"compilerOptions",
|
||||
prop => isObjectLiteralExpression(prop.initializer) ? prop.initializer : undefined,
|
||||
) || false;
|
||||
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
||||
_compilerOptionsObjectLiteralSyntax = compilerOptionsProperty ? tryCast(compilerOptionsProperty.initializer, isObjectLiteralExpression) || false : false;
|
||||
}
|
||||
return _compilerOptionsObjectLiteralSyntax || undefined;
|
||||
}
|
||||
|
||||
function getCompilerOptionsPropertySyntax() {
|
||||
if (_compilerOptionsPropertySyntax === undefined) {
|
||||
_compilerOptionsPropertySyntax = forEachPropertyAssignment(
|
||||
getTsConfigObjectLiteralExpression(options.configFile),
|
||||
"compilerOptions",
|
||||
identity,
|
||||
) || false;
|
||||
}
|
||||
return _compilerOptionsPropertySyntax || undefined;
|
||||
}
|
||||
|
||||
function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral: ObjectLiteralExpression, onKey: boolean, key1: string, key2: string | undefined, messageChain: DiagnosticMessageChain): boolean;
|
||||
function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral: ObjectLiteralExpression, onKey: boolean, key1: string, key2: string | undefined, message: DiagnosticMessage, ...args: DiagnosticArguments): boolean;
|
||||
function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral: ObjectLiteralExpression, onKey: boolean, key1: string, key2: string | undefined, message: DiagnosticMessage | DiagnosticMessageChain, ...args: DiagnosticArguments): boolean;
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.
|
||||
tsconfig.json(2,5): error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.
|
||||
test.ts(1,19): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
|
||||
|
||||
|
||||
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.
|
||||
==== tsconfig.json (0 errors) ====
|
||||
==== tsconfig.json (1 errors) ====
|
||||
{
|
||||
"compilerOptions": {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS5095: Option 'bundler' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.
|
||||
"paths": {
|
||||
"foo/*": ["./dist/*"],
|
||||
"baz/*.ts": ["./types/*.d.ts"]
|
||||
|
||||
@ -344,10 +344,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -657,10 +660,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -896,10 +902,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -1125,10 +1134,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -1341,10 +1353,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -1526,10 +1541,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -1780,10 +1798,13 @@ File '/home/src/projects/project/node_modules/foo2/package.json' exists accordin
|
||||
File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -2085,10 +2106,13 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
|
||||
File '/home/src/projects/project/node_modules/foo2/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -2406,10 +2430,13 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according
|
||||
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -2713,10 +2740,13 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according
|
||||
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -2952,10 +2982,13 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according
|
||||
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -3181,10 +3214,13 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according
|
||||
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
@ -3397,10 +3433,13 @@ File '/home/src/projects/project/node_modules/foo/package.json' exists according
|
||||
File '/home/src/projects/project/node_modules/@types/bar/package.json' exists according to earlier cached lookups.
|
||||
File '/lib/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mhome/src/projects/project/tsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
|
||||
Found 1 error.
|
||||
Found 1 error in home/src/projects/project/tsconfig.json[90m:2[0m
|
||||
|
||||
exitCode:: ExitStatus.DiagnosticsPresent_OutputsGenerated
|
||||
Program root files: [
|
||||
|
||||
@ -101,7 +101,10 @@ Resolving real path for '/Users/name/projects/web/node_modules/@types/yargs/inde
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
../../../../a/lib/lib.d.ts
|
||||
Default library for target 'es5'
|
||||
|
||||
@ -361,7 +361,10 @@ Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/index
|
||||
DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
|
||||
Scheduling invalidateFailedLookup, Cancelled earlier one
|
||||
Elapsed:: *ms DirectoryWatcher:: Triggered with /home/src/projects/project/tsconfig.tsbuildinfo :: WatchInfo: /home/src/projects/project 0 undefined Failed Lookup Locations
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -656,7 +659,10 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -802,7 +808,10 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -958,7 +967,10 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -1093,7 +1105,10 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -1221,7 +1236,10 @@ File '/home/src/projects/project/node_modules/@types/bar2/package.json' exists a
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -1478,7 +1496,10 @@ File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
|
||||
Elapsed:: *ms DirectoryWatcher:: Close:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -1799,7 +1820,10 @@ File '/package.json' does not exist according to earlier cached lookups.
|
||||
FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/@types/bar2/index.d.ts 250 undefined Source file
|
||||
DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
|
||||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /home/src/projects/node_modules 1 undefined Failed Lookup Locations
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -2083,7 +2107,10 @@ File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
FileWatcher:: Close:: WatchInfo: /home/src/projects/project/node_modules/foo2/index.d.ts 250 undefined Source file
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -2370,7 +2397,10 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -2516,7 +2546,10 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -2672,7 +2705,10 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -2807,7 +2843,10 @@ File '/home/src/projects/project/node_modules/@types/bar/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
@ -70,7 +70,10 @@ File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist.
|
||||
[91merror[0m[90m TS2209: [0mThe project root is ambiguous, but is required to resolve export map entry '.' in file '/user/username/projects/myproject/package.json'. Supply the `rootDir` compiler option to disambiguate.
|
||||
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 2 errors. Watching for file changes.
|
||||
|
||||
@ -184,7 +187,10 @@ File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS2209: [0mThe project root is ambiguous, but is required to resolve export map entry '.' in file '/user/username/projects/myproject/package.json'. Supply the `rootDir` compiler option to disambiguate.
|
||||
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'NodeNext' when option 'moduleResolution' is set to 'NodeNext'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 2 errors. Watching for file changes.
|
||||
|
||||
|
||||
@ -150,7 +150,10 @@ File '/user/username/projects/myproject/node_modules/pkg/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -306,7 +309,10 @@ Reusing resolution of module 'pkg1' from '/user/username/projects/myproject/inde
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
@ -150,7 +150,10 @@ File '/user/username/projects/myproject/node_modules/pkg/package.json' exists ac
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -306,7 +309,10 @@ Reusing resolution of module 'pkg1' from '/user/username/projects/myproject/inde
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
@ -150,7 +150,10 @@ File '/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/lib/package.json' does not exist.
|
||||
File '/a/package.json' does not exist.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
@ -327,7 +330,10 @@ File '/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/lib/package.json' does not exist according to earlier cached lookups.
|
||||
File '/a/package.json' does not exist according to earlier cached lookups.
|
||||
File '/package.json' does not exist according to earlier cached lookups.
|
||||
[91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
[96mtsconfig.json[0m:[93m2[0m:[93m3[0m - [91merror[0m[90m TS5110: [0mOption 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.
|
||||
|
||||
[7m2[0m "compilerOptions": {
|
||||
[7m [0m [91m ~~~~~~~~~~~~~~~~~[0m
|
||||
|
||||
[[90mHH:MM:SS AM[0m] Found 1 error. Watching for file changes.
|
||||
|
||||
|
||||
@ -466,9 +466,18 @@ Info seq [hh:mm:ss:mss] event:
|
||||
"configFile": "/home/src/projects/project/tsconfig.json",
|
||||
"diagnostics": [
|
||||
{
|
||||
"start": {
|
||||
"line": 2,
|
||||
"offset": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"offset": 20
|
||||
},
|
||||
"text": "Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'.",
|
||||
"code": 5110,
|
||||
"category": "error"
|
||||
"category": "error",
|
||||
"fileName": "/home/src/projects/project/tsconfig.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -1,17 +1,19 @@
|
||||
error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
|
||||
/tsconfig.json(3,5): error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
|
||||
Use 'verbatimModuleSyntax' instead.
|
||||
error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
|
||||
/tsconfig.json(3,5): error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
|
||||
Use 'verbatimModuleSyntax' instead.
|
||||
|
||||
|
||||
!!! error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
|
||||
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
|
||||
!!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
|
||||
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
|
||||
==== /tsconfig.json (0 errors) ====
|
||||
==== /tsconfig.json (2 errors) ====
|
||||
{
|
||||
"extends": "./tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
|
||||
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
|
||||
~~~~~~~~~~~~~~~~~
|
||||
!!! error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
|
||||
!!! error TS5102: Use 'verbatimModuleSyntax' instead.
|
||||
"verbatimModuleSyntax": true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user