79425197

Date: 2025-02-09 16:00:06
Score: 0.5
Natty:
Report link

I had a very similar issue which came down to Webstorm's type narrowing. I was using neverthrow in a Turbo monorepo. To fix, I had to direct WebStorm to my tsconfig base file.

  1. Go to Settings -> languages & frameworks -> Typescript
  2. add -p ./packages/typescript-config/base.json (or the location to your base tsconfig file) in the Options

With IntelliJ I found that often the idea gets confused and I need to either restart ide or invalidate cache...

Hope this helps anyone who was in the same boat as me

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): Hope this helps
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: James