dsherret / dsherret/ts-morph

[Question] typescript path mapping

Open
#805 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
6.2k
Forks
238
Avg merge
2m
Merged PRs (30d)
1

Description

I am just getting started with ts-morph and think that my typescript [path mappings](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) are not working for some reason.

Should this work out of the box, or do we need a [custom module mapping](https://ts-morph.com/setup/index#custom-module-resolution)?
If so, are there any examples available?

Contributor guide

Open the contributing guide

Research direction

Start with the TypeScript path mapping documentation and ts-morph's custom module resolution guide, both linked in the issue. Verify whether path mappings work with the default setup or require custom mapping, then document a minimal example and the expected configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.