Files
tsgo/testdata/baselines/reference/submodule/conformance/moduleResolutionWithoutExtension8.errors.txt
2025-06-02 22:03:41 +00:00

8 lines
599 B
Plaintext

/src/bar.cts(2,8): error TS2834: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.
==== /src/bar.cts (1 errors) ====
// Extensionless relative path dynamic import in a cjs module
import("./foo").then(x => x); // should error, ask for extension
~~~~~~~
!!! error TS2834: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.