Giter Club home page Giter Club logo

Comments (4)

gilamran avatar gilamran commented on May 28, 2024

I tested it on my machine with no issues.
Please provide some more information

from tsc-watch.

btxtiger avatar btxtiger commented on May 28, 2024

Works for me with 2.9.2

from tsc-watch.

asztal avatar asztal commented on May 28, 2024

It's been causing us issues. Instead of having typescript as a peer dependency, it installs it as a dependency of its own (using "*", as well). Perhaps this only affects yarn users.

In our case that actually resulted in us having two versions of typescript installed in our package - the one specified in our package.json (2.9.2), and the one tsc-watch had already installed previously (2.8.3). Installing 2.9.2 doesn't upgrade tsc-watch's version, because as far as yarn is concerned, 2.8.3 still matches *. (Yarn is possibly being stupid here, 2.9.2 also matches *...)

In any case, perhaps it would be better for it to have typescript as a peerDependency instead so that it can simply inherit the correct version of typescript? If someone were deliberately using an older version of typescript, to avoid build errors (since new versions of typescript often introduce new errors for existing code), this could cause them problems if they got a new version of typescript without expecting it.

In my case, I have added a resolution to my package.json.

from tsc-watch.

gilamran avatar gilamran commented on May 28, 2024

@asztal You are talking about a different issue, and you are absolutely right.
TypeScript should be as peerDependency to tsc-watch. Fixed on version 1.0.23
Thanks!

from tsc-watch.

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.