vite-plugin-dts icon indicating copy to clipboard operation
vite-plugin-dts copied to clipboard

fix: compatibility with `"moduleResolution": "Node16"`

Open demensky opened this issue 9 months ago • 0 comments

If the project uses moduleResolution with the value Node16 and rollupTypes is enabled, then an error occurs:

Error: [vite:dts] Internal Error: getResolvedModule() could not resolve module name "./path/to/file"

If we do not remove .ts completely, but replace it with .js, then the problem disappears.

demensky avatar May 15 '24 23:05 demensky