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
// example.tsimport*asexamplefrom"./example.json"assert{type: "json" }^^^^^^^^^^^^^^^^// This relative import path is unsafe to rewrite because it looks// like a file name, but actually resolves to "./example.json". ts(2876)
🙁 Actual behavior
import*asexamplefrom"./example.json"assert{type: "json" }^^^^^^^^^^^^^^^^// This relative import path is unsafe to rewrite because it looks// like a file name, but actually resolves to "./example.json". ts(2876)
🙂 Expected behavior
No error
Additional information about the issue
The documentation says:
/* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
I wouldn't expect this to apply any sort of change to a .json file.
The text was updated successfully, but these errors were encountered:
🔎 Search Terms
rewriteRelativeImportExtensions
resolveJsonModule
ts(2876)
🕗 Version & Regression Information
N/A
and5.7.0-beta
rewriteRelativeImportExtensions
did not exist⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
🙂 Expected behavior
No error
Additional information about the issue
The documentation says:
/* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
I wouldn't expect this to apply any sort of change to a
.json
file.The text was updated successfully, but these errors were encountered: