File: requireOfJsonFileNonRelativeWithoutExtension.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (29 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/src/projects/file1.ts(1,20): error TS2307: Cannot find module 'd.json' or its corresponding type declarations.
/src/projects/file1.ts(2,20): error TS2307: Cannot find module 'e' or its corresponding type declarations.


==== /src/projects/file1.ts (2 errors) ====
    import d = require("d.json"); // Should fail
                       ~~~~~~~~
!!! error TS2307: Cannot find module 'd.json' or its corresponding type declarations.
    import e = require("e"); // Should fail
                       ~~~
!!! error TS2307: Cannot find module 'e' or its corresponding type declarations.
    
==== /src/projects/node_modules/b.json (0 errors) ====
    {
        "a": true,
        "b": "hello"
    }
    
==== /src/projects/node_modules/e.json (0 errors) ====
    {
        "a": true,
        "b": "hello"
    }
    
==== /src/node_modules/c.json (0 errors) ====
    {
        "a": true,
        "b": "hello"
    }