Coder Social home page Coder Social logo

Comments (3)

mrjoelkemp avatar mrjoelkemp commented on May 21, 2024

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.

kevinokerlund avatar kevinokerlund commented on May 21, 2024

@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.

mrjoelkemp avatar mrjoelkemp commented on May 21, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.