File: moduleResolutionWithoutExtension6.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 (10 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
/src/bar.cts(4,21): error TS2307: Cannot find module './foo' or its corresponding type declarations.


==== /src/bar.cts (1 errors) ====
    // Extensionless relative path import statement in a cjs module
    // Import statements are not allowed in cjs files,
    // but other errors should not assume that they are allowed
    import { foo } from "./foo"; // should error, should not ask for extension
                        ~~~~~~~
!!! error TS2307: Cannot find module './foo' or its corresponding type declarations.