-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't working
Description
trace-deps can't handle seemingly simple pnpm deps because presumably the mix of hard and soft links.
WIP Branch
Example
For example, a package @remix-run/node with prod dep abort-controller ends up with a trace error of:
ERROR Error: Encountered resolution error in /PATH/TO/project/node_modules/@remix-run/node/dist/index.js for abort-controller: Error: Cannot find module 'abort-controller' from '/PATH/TO/project/node_modules/@remix-run/node/dist'
where the real module is at:
node_modules/.pnpm/@[email protected]_biqbaboplfbrettd7655fr4n2y/
although on disk we have these symlinks:
node_modules/.pnpm/node_modules/abort-controller
node_modules/.pnpm/@[email protected]_biqbaboplfbrettd7655fr4n2y/node_modules/abort-controller
that point to:
node_modules/.pnpm/[email protected]/node_modules/abort-controller
which exists and has the necessary files.
Tasks
- Come up with failing unit test using analogous symlinks and such
- Fix the issue.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working