Git Product home page Git Product logo

Comments (7)

mike-north avatar mike-north commented on May 18, 2024 1

I just updated the lock file, with an upgrade to node-sass.

Before

yarn why har-validator

=> Found "[email protected]"
info Reasons this module exists
   - "node-sass#request" depends on it
   - Hoisted from "node-sass#request#har-validator"

After

yarn why har-validator

=> Found "[email protected]"
info Reasons this module exists
   - "node-sass#request" depends on it
   - Hoisted from "node-sass#request#har-validator"

from typescript-fundamentals.

the-other-nick-wilson avatar the-other-nick-wilson commented on May 18, 2024

I'm not sure if this is the best approach, but based on what I found here, I just updated the relevant section in the yarn.lock file to 5.1.3.

So change this:

har-validator@~5.1.0:
  version "5.1.2"
  resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz#a3891924f815c88e41c7f31112079cfef5e129e5"
  integrity sha512-OFxb5MZXCUMx43X7O8LK4FKggEQx6yC5QPmOcBnYbJ9UjxEcMcrMbaR0af5HZpqeFopw2GwQRQi34ZXI7YLM5w==
  dependencies:
    ajv "^6.5.5"
    har-schema "^2.0.0"

To this:

har-validator@~5.1.3:
  version "5.1.3"
  resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz#a3891924f815c88e41c7f31112079cfef5e129e5"
  integrity sha512-OFxb5MZXCUMx43X7O8LK4FKggEQx6yC5QPmOcBnYbJ9UjxEcMcrMbaR0af5HZpqeFopw2GwQRQi34ZXI7YLM5w==
  dependencies:
    ajv "^6.5.5"
    har-schema "^2.0.0"

And try the yarn install command again and it should work. Basically it appears the har-validator package was tagged under the wrong version.

What I don't know is if I was supposed to update both of those versions, or just the top one. It would be nice to get some confirmation here.

from typescript-fundamentals.

jccartwright avatar jccartwright commented on May 18, 2024

thanks for the prompt response. modifying the version does indeed seem to allow yarn to install dependencies correctly.

However, I'm now wondering if the test script is working as expected. For example
cd exercises; npm test color-functions

does not run the tests for "color-functions". It looks to me as if the scripts/test/index.sh should contain
./node_modules/.bin/jest --no-cache --watch $1
rather than
./node_modules/.bin/jest --no-cache --watch $2

from typescript-fundamentals.

the-other-nick-wilson avatar the-other-nick-wilson commented on May 18, 2024

Hmm, I don't think you need to cd into the exercises directory. Did you try npm test color-functions from the base directory? Do you get an error when trying to run it?

from typescript-fundamentals.

jccartwright avatar jccartwright commented on May 18, 2024

from typescript-fundamentals.

the-other-nick-wilson avatar the-other-nick-wilson commented on May 18, 2024

Weird, I totally see what you mean, but mine works just fine with:

npm test color-functions

Even though my index.sh is:

#!/bin/bash ./node_modules/.bin/jest --no-cache --watch $2

I tried:

npm test junk color-functions

And that still works too.

from typescript-fundamentals.

mike-north avatar mike-north commented on May 18, 2024

🎉 This issue has been resolved in version 1.0.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

from typescript-fundamentals.

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.