Comments (3)
Hey @kevinokerlund! Thanks for contributing!
This is already handled here https://github.com/dependents/node-filing-cabinet/blob/f11d3229e718b57a8b2c8f0eb5e6c952c596cda7/index.js#L256-L268 if you provide a webpack config to dependency tree.
Can you let me know what your dependency-tree config looks like? Are you using this lib via https://github.com/pahen/madge?
It's either a configuration error or an intricate bug that needs to be fixed in the linked code above.
from node-dependency-tree.
@mrjoelkemp, thanks for getting back to me. I went ahead and set up a [temporary repository](removed) with the most basic setup I could do to reproduce what I'm seeing if you want to run it for yourself.
I dove a bit into filing-cabinet
and in my case, it is failing here: https://github.com/dependents/node-filing-cabinet/blob/f11d3229e718b57a8b2c8f0eb5e6c952c596cda7/index.js#L279
I found that it does work when I update internal-libs
in the resolve.modules
to:
modules: [
'node_modules',
'src/internal-libs' // prepended src/
]
but I feel that it's pretty common to have the resolve.modules
the way I have it set.
For debugging purposes, I logged out lookupPath
and partial
in filing-cabinet
, and the values were as follows in both cases:
lookupPath = /Users/my-user/Sandbox/dep-tree
partial = special.lib.js
from node-dependency-tree.
@kevinokerlund Thanks for the additional details. I haven't forgotten about this. Webpack resolution via enhanced-resolve was intentionally lagging behind due to their move to es6 and deprecation of older node versions without a major version bump.
I figured it would be good to finally try getting up to their most recent version. I did that within filing-cabinet but have some test issues to work out with mock-fs in upstream libraries before calling that work complete. In the mean time, if you do a fresh install of the dependencies, you should get filing-cabinet v1.13.0. I'm curious if that works as you'd expect.
Thanks and sorry for the delay in replying. I'm glad there's a workaround in the mean time.
from node-dependency-tree.
Related Issues (20)
- npm i --global-style
- dynamic import with Typescript doesn't work. HOT 10
- Exclude unused import HOT 3
- Sass imports from node_modules HOT 1
- fix(tsconfig): path mapping (module alias)
- Out of memory without `--list-form` HOT 1
- Find dependents
- Why not supporting an object for webpackConfig parameter? HOT 1
- Don't support alias in webpack.config.js
- Node package.json exports field not understood.
- feat: list import identifiers in dep tree HOT 3
- Why is precinctOptions.includeCore always false?
- dependencyTree only returning an empty object HOT 2
- Help fix
- Miss typings definine in package.json `files` HOT 1
- Resolving local/nested node_modules folder
- Fix tests on Node.js 20 HOT 5
- Hello author
- Filter out type import dependencies HOT 2
- How I can easily change the code to get the url of images in the tree ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-dependency-tree.