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
Currently, baseUrl replacer is always enabled, although baseUrl is an optional field, even when paths option is specified (microsoft/TypeScript#31869).
This causes a bug in a situation when baseUrl option is not set and project module has the same name as a module from node_modules (demo).
Currently,
baseUrl
replacer is always enabled, althoughbaseUrl
is an optional field, even whenpaths
option is specified (microsoft/TypeScript#31869).This causes a bug in a situation when
baseUrl
option is not set and project module has the same name as a module fromnode_modules
(demo).It happens because
tsc-alias
uses./
as default value forbaseUrl
when it's not set (https://github.com/justkey007/tsc-alias/blob/v1.8.4/src/helpers/config.ts#L42) and runsbaseUrl
replacer.The solution is to not run
baseUrl
replacer whentsconfig.json
doesn't have the corresponding option.The text was updated successfully, but these errors were encountered: