Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support alias yet #84

Open
thanhlmm opened this issue Oct 11, 2021 · 6 comments
Open

Not support alias yet #84

thanhlmm opened this issue Oct 11, 2021 · 6 comments

Comments

@thanhlmm
Copy link

Describe the bug
If I use alias in file, the extenstion fail to reach the file: Eg: @/component/index.tsx

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@PLCoster
Copy link
Collaborator

Hi thanhlmm,

We hope to support aliases in the future, so thank you for opening this issue. We will get back to you if we release a new version that should handle your use-case.

Thank you for testing out Sapling!

@exdeniz
Copy link

exdeniz commented Oct 13, 2021

In addition to alias support, make yarn workspace support too.

@antoniel
Copy link

A thing that may help when implementing this is this repository https://github.com/pahen/madge, it allow the user to pass some info as requireConfig, webpackConfig and tsConfig for resolving aliased modules. You may have a look and take some insights from how they implemented it

cc @PLCoster

@doytch
Copy link

doytch commented Oct 14, 2021

We hope to support aliases in the future, so thank you for opening this issue. We will get back to you if we release a new version that should handle your use-case.

@PLCoster Is this something that's actively being planned or anything? Was thinking I might take a look at this and submit a PR if I can spare some time if not.

@PLCoster
Copy link
Collaborator

@doytch - yes this is actually the next feature we are working on. Will update when something is ready!

@MarkNygaard
Copy link

Just installed Sapling but sadly experienced the same issue as thanhlmm. Are you still working on a new version to come out or has the project stalled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants