Cannot find module 'types/graphql' or its corresponding type declarations

Ok,

So I generate a cell in a typescript project and it’s complaining Cannot find module 'types/graphql' or its corresponding type declarations.

The cell works just fine - I’ve just not created the service yet.

Then I try to generate a service to handle it – NOTE: I do not need a database, I’ll be calling remote services via messaging to do all the work… I’m just creating a service.

That fails with "alt-id" model not found, check if it exists in "./api/db/schema.prisma"

I also cannot generate the sdl

It feels like I should be able to do this somehow…

1 Like

hi @ajoslin103, any luck w/ this?

I’ve not looked at that project in quite a while, we could close this one

Sounds good, FWIW assuming SDLs have been generated e.g. yarn rw g sdl Contact

One can run yarn rw-gen to get these type declarations in sync.

See: Cannot query field "..." on type "Query".GraphQL: Validation - #5 by 0x1a4f7d58