question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript errors aren't being reported

See original GitHub issue
  • [x ] I have read the contribution documentation for this project.
  • [x ] I agree to follow the code of conduct that this project follows, as appropriate.
  • [x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:

Hello,

In adapting one of my projects to use electron-forge I noticed I wasn’t receiving compile errors when I should be. Exploring the issue I found that projects created with the react-typescript template do not throw any kind of compile errors for typescript code through electron-forge start or electron-forge lint or even electron-forge make.

I’ve got a test repository here that shows this in action. This repository was created using

electron-forge init --template=react-typescript

I’ve deliberately introduced compile errors by adding the line

const four:number = 'four';

to both the src/app.tsx and src/index.ts. These errors are never reported.

I’ve posted this issue here because I’m unfamiliar with the project and don’t know if this is relevant to the forge cli tool or its react-typescript template. If this needs to be resubmitted elsewhere please let me know.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MarshallOfSoundcommented, Apr 21, 2017

@paarthenon You can use tslint with the --type-check option enabled 👍

0reactions
anaisbettscommented, Apr 26, 2017

@paarthenon I’d just set up your lint task to run tsc on the whole project

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript errors aren't being reported · Issue #205 - GitHub
Exploring the issue I found that projects created with the react-typescript template do not throw any kind of compile errors for typescript code ......
Read more >
TypeScript errors and how to fix them
Common Errors​​ Below you find a list of common TypeScript errors along with the buggy code and its fixed version.
Read more >
Improving TypeScript error handling with exhaustive type ...
In this article, we'll cover a few of the most common approaches for error handling in TypeScript (TS). We'll talk about most common...
Read more >
tsc not reporting errors when compiling - Stack Overflow
If you want to verify that ts-node is reporting TypeScript compilation errors, use an obvious TypeScript error; something like this:
Read more >
Visual Studio is not showing typescript errors in an Angular ...
If I run webpack as part of a publish, its able to report errors like. Error TS2551: Property 'documentType' does not exist on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found