-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
I've found a fix for the problem, and a potential improvement in either the code or the docs (or both!).
This line sets up the alias imports:
baseUrl && paths It needs the presence of
baseUrl
andpaths
in your tsconfig to create an alias importer.baseUrl
gets a default value, so this check does nothing, butpaths
need to exist (even if an empty object), to create the path matcher.The easy fix is just to add the following to your tsconfig:
"compilerOptions": { "paths": {} }This then allows the alias importer to resolve relative to your tsconfig, as well as relative to the file it is resolving.
Originally posted by @RMHonor in #267 (comment)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working