Giter Club home page Giter Club logo

Comments (7)

jonaskello avatar jonaskello commented on May 28, 2024 3

I bumped into the same problem. However it was a config issue. Following the readme I did:

    "start": "tsc-watch server.ts --onSuccess \"node ./lib/server.js\" --onFailure \"echo Beep! Compilation Failed\"",

But I should not have specified the file server.ts. I think if you specify the file, tsc will not think of it as a project and thus not use tsconfig.json. So what I wanted was this:

    "start": "tsc-watch --onSuccess \"node ./lib/server.js\" --onFailure \"echo Beep! Compilation Failed\"",

Just removed the filename and it started to work :-).

from tsc-watch.

gilamran avatar gilamran commented on May 28, 2024

I just tried to reproduce this issue and I do get errors when using tsc-watch
Please provide a minimal example that demonstrates this issue.

from tsc-watch.

gilamran avatar gilamran commented on May 28, 2024

Bump.

from tsc-watch.

gilamran avatar gilamran commented on May 28, 2024

Can anyone approve of this issue?

from tsc-watch.

johhansantana avatar johhansantana commented on May 28, 2024

It seems like it's working now somehow. I'm not really sure if it was on my end but after running:

ts-watch --onSuccess 'node ./server.js'

it does use my config.

Sorry for the issue.

from tsc-watch.

DutchKevv avatar DutchKevv commented on May 28, 2024

can this please be noted in the README?? It took me half a day to figure out why my tsconfig.json wasn't used :)

Or even better, maybe tsc-watch can still look for a tsconfig.json if the 'src' (first param) is given?

I bumped into the same problem. However it was a config issue. Following the readme I did:

    "start": "tsc-watch server.ts --onSuccess \"node ./lib/server.js\" --onFailure \"echo Beep! Compilation Failed\"",

But I should not have specified the file server.ts. I think if you specify the file, tsc will not think of it as a project and thus not use tsconfig.json. So what I wanted was this:

    "start": "tsc-watch --onSuccess \"node ./lib/server.js\" --onFailure \"echo Beep! Compilation Failed\"",

Just removed the filename and it started to work :-).

from tsc-watch.

gilamran avatar gilamran commented on May 28, 2024

Cool, thanks.
README updated

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.