trace-deps can't handle seemingly simple pnpm deps because presumably the mix of hard and soft links.
WIP Branch
main...bug/pnpm
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/@remix-run+node@1.7.1_biqbaboplfbrettd7655fr4n2y/
although on disk we have these symlinks:
node_modules/.pnpm/node_modules/abort-controller
node_modules/.pnpm/@remix-run+node@1.7.1_biqbaboplfbrettd7655fr4n2y/node_modules/abort-controller
that point to:
node_modules/.pnpm/abort-controller@3.0.0/node_modules/abort-controller
which exists and has the necessary files.
Tasks
trace-depscan't handle seemingly simple pnpm deps because presumably the mix of hard and soft links.WIP Branch
main...bug/pnpm
Example
For example, a package
@remix-run/nodewith prod depabort-controllerends up with a trace error of:where the real module is at:
although on disk we have these symlinks:
that point to:
which exists and has the necessary files.
Tasks