File: bundlerRelative1.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 (39 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
/main.ts(4,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
/main.ts(7,16): error TS2307: Cannot find module './redirect/index' or its corresponding type declarations.


==== /dir/index.ts (0 errors) ====
    export const x = 0;
    
==== /redirect/package.json (0 errors) ====
    { "main": "../foo" }
    
==== /foo/index.ts (0 errors) ====
    export const y = 0;
    
==== /types/esm.d.ts (0 errors) ====
    declare const _: string;
    export default _;
    
==== /types/cjs.d.ts (0 errors) ====
    declare const _: string;
    export = _;
    
==== /main.ts (2 errors) ====
    import { x } from "./dir";
    import {} from "./dir/index";
    import {} from "./dir/index.js";
    import {} from "./dir/index.ts";
                   ~~~~~~~~~~~~~~~~
!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled.
    
    import { y } from "./redirect";
    import {} from "./redirect/index";
                   ~~~~~~~~~~~~~~~~~~
!!! error TS2307: Cannot find module './redirect/index' or its corresponding type declarations.
    
    import a from "./types/esm";
    import * as esm from "./types/esm";
    import b from "./types/cjs";
    import * as cjs from "./types/cjs";