mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
8 lines
601 B
Plaintext
8 lines
601 B
Plaintext
/src/buzz.mts(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/buzz.mts (1 errors) ====
|
|
// Extensionless relative path dynamic import in an ES 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. |