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 package not generating strict checks

See original GitHub issue

👋 This is a really amazing tool. Seriously, I’m super excited you’re building it and I’d love to help out.

I tried to integrate it into one of Artsy’s repos. You can see the PR here: https://github.com/artsy/reaction/pull/2864.

If you clone reaction and (after running yarn) run

tsc --noEmit --pretty --strict

you’ll see a lot of errors. If you just run…

yarn betterer

the snapshot won’t contain any. I’m not 100% sure what’s happening here… I did notice that you had typescript as a direct dependency of @betterer/typescript which it might not need to be… I tried upgrading our version of ts (which needed to be done anyway) and adding a resolution but that didn’t change things.

Likely, I suspect that not all of the tsconfig is getting copied over. I can try to investigate more tomorrow.

This is exciting! 🎉

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
phenomnomnominalcommented, Oct 1, 2019

Or you can bump to @betterer/typescript@0.1.6 and that will fix the TypeScript dependency too ☀️

1reaction
phenomnomnominalcommented, Oct 1, 2019

Cool, I think I’ve fixed this, you’ll need to bump to @betterer/typescript@0.1.5, let me know if that works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

strictNullChecks - TSConfig Option - TypeScript
When strictNullChecks is false , null and undefined are effectively ignored by the language. This can lead to unexpected errors at runtime.
Read more >
typescript not creating dist folder - node.js - Stack Overflow
First: Your build command should be tsc --project tsconfig. json . The command you're currently using is trying to build your tsconfig. json ......
Read more >
Controlling type checking strictness | Learn TypeScript
When creating a new TypeScript project, it is recommended to have strict mode on so that code benefits from the most stringent type...
Read more >
TypeScript Strict mode: Turn it on immediately without ...
It does not turn the strict mode when generating a new Angular ... we saw how we can enable the Strict type checking...
Read more >
Strict mode - JavaScript - MDN Web Docs
For example, NaN is a non-writable global variable. In sloppy mode, assigning to NaN does nothing; the developer receives no failure feedback.
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