Unable to resolve index.tsx dependencies

Open
#118 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #116 by @SyMind — closed without merging

Assessment

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

Research direction

Reproduce the issue with the components/lib index.tsx file containing export * lines and inspect how the dependency resolver handles components/lib and the reported nonExistent partials. Compare the behavior with madge issue 128 and the available debug output. Done means index.tsx dependencies resolve without the empty filepath warning.

Written by the indexing model from the issue text.

Description

I'm having trouble running this package over dependencies that include in index.tsx file as I'm getting the error:

tree skipping an empty filepath resolution for partial: components/lib +29ms

My index.tsx in components/lib just consists of export * from ___ lines.

I saw this similar issue here: https://github.com/pahen/madge/issues/128 but it didn't seem to have a solution. Any ideas on this?

In the debug output i'm seeing:

 tree deduped list of nonExistent partials:  [ 
  'components/lib',
  ...
  '../..' ]
Dominant language
JavaScript
Stars
776
Forks
82
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dependents/node-dependency-tree

All issues in dependents/node-dependency-tree

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.