bffe3540fa
* added Error 5084 to diagnosticMessages.json * added test case errorForBareSpecifierWithImplicitModuleResolution1 to tests/cases/compiler * modified checker.ts to report error 5084 when classic resolution and incorrect path are used * added baseline changes * passes all test cases including src/testRunner/unittests/ tests * Update with feedback * Make it check whether it is the right module resolution kind * Use the right diagnostic message in tsserver tests Co-authored-by: Meera Shivakumar <mshivaku@umich.edu> Co-authored-by: Orta <git@orta.io>
15 lines
832 B
Plaintext
15 lines
832 B
Plaintext
/a/b/c/d/e/app.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
/a/b/c/lib.ts(1,17): error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
|
|
|
|
==== /a/b/c/lib.ts (1 errors) ====
|
|
import {x} from "foo";
|
|
~~~~~
|
|
!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
|
|
|
|
==== /a/b/c/d/e/app.ts (1 errors) ====
|
|
import {x} from "foo";
|
|
~~~~~
|
|
!!! error TS2792: Cannot find module 'foo'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
|