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
▲ [WARNING] Non-relative path "${configDir}/src" is not allowed when "baseUrl" is not set (did you forget a leading "./"?) [tsconfig.json]
node_modules/tsex/tsconfig.json:47:12:
47 │ "~": ["${configDir}/src"],
╵ ~~~~~~~~~~~~~~~~~~
▲ [WARNING] Non-relative path "${configDir}/src/*" is not allowed when "baseUrl" is not set (did you forget a leading "./"?) [tsconfig.json]
node_modules/tsex/tsconfig.json:48:14:
48 │ "~/*": ["${configDir}/src/*"]
╵ ~~~~~~~~~~~~~~~~~~~~
2 warnings
The text was updated successfully, but these errors were encountered:
Just looked into microsoft/TypeScript#58042 a bit. It looks like as far as esbuild is concerned, this only affects baseUrl and paths. If the string starts with "${configDir}" (only at the start, not anywhere else), I need to replace that prefix with "./" and then resolve that into an absolute path relative to the directory containing the root-level tsconfig.json file. In particular, it looks like you don't need to use a slash after ${configDir} since "${configDir}/lib" becomes ".//lib" after this substitution. Hopefully I'm understanding everything correctly.
In TS v5.5.0 a new
${configDir}
template variables will be supported.Trying to bundle a project that uses that variables in its
tsconfig.json
with the following command with esbuild@0.21.4:Results in the following warnings:
The text was updated successfully, but these errors were encountered: