2eca17d7c1
* --explainFiles currently hardcoded * Move configFileSpecs to configFile so it can be used in program later * Explain root file inclusion reason and explain include files in the log * Baseline explainFiles * Fix incorrectly reporting of file list two times in --b mode * Fix unnecessary new lines in output represented incorretly in the baseline * More tests * More cleaning up * Keep listing files in same order as list files, just add explaination * Fix double listing of file names when the program has errors * Make diagnostic chains for file include reason * Add explaination for the file include to diagnostics for program * Harness ls incorrectly adding tsconfig as the root file * Fix incorrect use of path for calculating absolute path * Fix the root file in fourslash * Test project service options merge * Add config file name to matched by include explaination * Add test for when the file changes and program is reused completely but related file information is reattached to correct location * Handle file preprocessing diagnostics updates when program is reused and related information location changes * Moved types to types.ts * Refactoring and cleanup * More cleanup * More refatoring * Handle synthetic imports * Baselines after merge
32 lines
1.7 KiB
Plaintext
32 lines
1.7 KiB
Plaintext
/node_modules/bar/index.d.ts(1,23): error TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
|
|
The file is in the program because:
|
|
Type library referenced via 'alpha' from file '/node_modules/foo/index.d.ts'
|
|
Type library referenced via 'alpha' from file '/node_modules/bar/index.d.ts'
|
|
|
|
|
|
==== /src/root.ts (0 errors) ====
|
|
/// <reference types="foo" />
|
|
/// <reference types="bar" />
|
|
|
|
==== /node_modules/foo/index.d.ts (0 errors) ====
|
|
// Secondary references may not be duplicated if they disagree in content
|
|
|
|
/// <reference types="alpha" />
|
|
declare var foo: any;
|
|
|
|
==== /node_modules/foo/node_modules/alpha/index.d.ts (0 errors) ====
|
|
declare var alpha: any;
|
|
|
|
==== /node_modules/bar/index.d.ts (1 errors) ====
|
|
/// <reference types="alpha" />
|
|
~~~~~
|
|
!!! error TS4090: Conflicting definitions for 'alpha' found at '/node_modules/bar/node_modules/alpha/index.d.ts' and '/node_modules/foo/node_modules/alpha/index.d.ts'. Consider installing a specific version of this library to resolve the conflict.
|
|
!!! error TS4090: The file is in the program because:
|
|
!!! error TS4090: Type library referenced via 'alpha' from file '/node_modules/foo/index.d.ts'
|
|
!!! error TS4090: Type library referenced via 'alpha' from file '/node_modules/bar/index.d.ts'
|
|
!!! related TS1404 /node_modules/foo/index.d.ts:3:23: File is included via type library reference here.
|
|
declare var bar: any;
|
|
|
|
==== /node_modules/bar/node_modules/alpha/index.d.ts (0 errors) ====
|
|
declare var alpha: {};
|
|
|