Giter VIP home page Giter VIP logo

Comments (5)

XhmikosR avatar XhmikosR commented on June 3, 2024 1

@GiladShoham yeah you are probably right. Unsure how to make tests pass again on Node.js 20. If you have any suggestions feel free to make a PR and CC me.

EDIT: I just looked at your linked PRs. It seems it's just a matter of calling toString('utf-8'). Anyway, feel free to make a PR.

from node-dependency-tree.

GiladShoham avatar GiladShoham commented on June 3, 2024

I have the same problem.
@XhmikosR which version of node it started?

Seems like it works with 20.4.0 but fail on 20.5.0

from node-dependency-tree.

GiladShoham avatar GiladShoham commented on June 3, 2024

Maybe it's related to this change in 20.5.0
[986b46a567] - fs: add a fast-path for readFileSync utf-8 (Yagiz Nizipli) nodejs/node#48658

from node-dependency-tree.

GiladShoham avatar GiladShoham commented on June 3, 2024

another relevant reference is here - kubernetes-client/javascript#1202
and also this one - tschaub/mock-fs#377

from node-dependency-tree.

XhmikosR avatar XhmikosR commented on June 3, 2024

I pushed a branch with debug enabled on CI and the issue seems to be with fs.existsSync:

Unsure how to proceed...

We are also hitting this in other repos like node-stylus-lookup:

EDIT: looks like it's a mock-fs issue? tschaub/mock-fs#377

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.