9cdbb7248b
* add new error + suggestions * push down assert defined * remove comment * fix esm module import detection, update baselines * add and update new tests * fix review comments * remove renamed baseline references * update node modules test baselines * fix error message, add new tests * update old tests with new error message
8 lines
406 B
Plaintext
8 lines
406 B
Plaintext
/src/buzz.mts(2,22): error TS2307: Cannot find module './foo' or its corresponding type declarations.
|
|
|
|
|
|
==== /src/buzz.mts (1 errors) ====
|
|
// Extensionless relative path cjs import in an ES module
|
|
import foo = require("./foo"); // should error, should not ask for extension
|
|
~~~~~~~
|
|
!!! error TS2307: Cannot find module './foo' or its corresponding type declarations. |