* 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>
18 lines
1 KiB
Plaintext
18 lines
1 KiB
Plaintext
error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
|
|
tests/cases/compiler/file1.ts(1,1): error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
|
|
tests/cases/compiler/file1.ts(1,20): error TS2792: Cannot find module './b.json'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
|
|
|
|
!!! error TS5070: Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.
|
|
==== tests/cases/compiler/file1.ts (2 errors) ====
|
|
import * as b from './b.json';
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1148: Cannot use imports, exports, or module augmentations when '--module' is 'none'.
|
|
~~~~~~~~~~
|
|
!!! error TS2792: Cannot find module './b.json'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
|
|
|
|
==== tests/cases/compiler/b.json (0 errors) ====
|
|
{
|
|
"a": true,
|
|
"b": "hello"
|
|
} |