/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.