You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// "package.json does not have any type overriding because project explicitly uses the correct filename extensions."
π Actual behavior
import mjs in mts file
TS2876: This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "../ logger/ logger. mjs"
But works good
on import .mjs into mjs files.
on import .mts files into both, mjs and mts.
π Expected behavior
No error emitted. imported filename and extension is correct.
Additional information about the issue
Reproduced on both, 5.7.0-beta and current ^5.7.0-dev.20241103
The text was updated successfully, but these errors were encountered:
π Search Terms
rewriteRelativeImportExtensions
ts(2876)
π Version & Regression Information
β― Playground Link
No response
π» Code
//src/logger/logger.mjs
//File is JS mjs file!
src/database/database.mts
//File is TS mts file!
// tsconfig.json, fragment
// "package.json does not have any type overriding because project explicitly uses the correct filename extensions."
π Actual behavior
import mjs in mts file
TS2876: This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "../ logger/ logger. mjs"
But works good
π Expected behavior
No error emitted. imported filename and extension is correct.
Additional information about the issue
Reproduced on both, 5.7.0-beta and current ^5.7.0-dev.20241103
The text was updated successfully, but these errors were encountered: