Struggling with Persistent Type Errors in Effect Typescript Library

I am having trouble with persistent layer construction type errors. I tried everything I know how to do and some stuff I made up. My AI agent tried many more combinations. At some point I noticed that the the Effect LSP was no longer reporting the error. Then I ran the program. It ran perfectly. Including calling the service that was was 'missing' - Type 'FileSystem' is not assignable to type 'never'.ts(2345).

So, the code works but I still have a type error and my file is one giant blob of red squiggles. So, I tried to add @ts_expect_error directives. They didn't work. I am 2 - 3 days into this and have no idea what to try next.

It's a big code base and I'm not sure what to share that shows the problem.
Was this page helpful?