-
Notifications
You must be signed in to change notification settings - Fork 276
New issue with makeSchema (getTypeMap of undefined) #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment has been minimized.
This comment has been minimized.
Old newsI'm making progress, but nothing is making sense yet:
So, I removed In addition, I know the code in my type files is correct. It hasn't been changed since my last working commit. I'm going to pause here. If anyone can help, I'd appreciate it |
I had this issue earlier: graphql-nexus/nexus-plugin-prisma#872 It transformed into this one |
Old newsFound the fix! In my Query.ts file, I have references to objects in my generated client. But they did exist in the past. That's what was tripping me up. I simply commented out the import, ran In addition, the newest version of ts-node-dev causes an issue, I had to use |
I thought I had fixed this: I believed this to be a case of circular imports (it couldn't generate @prisma/client because a generated type couldn't be imported), But days after that "fix" I still stumble on this error. Reopened and praying |
I think...I maybe found the fix? |
How did you fix this at the end? I got the same issue out of a sudden and couldn't get things to work again, I tried different prisma clients from 2.9 up to lastest, please share your package.json if you can |
Try not to import |
I honestly have no clue where this issue began. Yesterday, at some point, I started getting this error on
yarn generate
:I can't think of anything that would've caused this, but I tried rolling back to a previous (and known-to-work) commit, deleting my node_modules, and reinstalling, but I never got it back to a working state 🥳. If anyone has any info/debugging tips for this, I'm all ears
My package.json:
I've tried:
undefined
)The text was updated successfully, but these errors were encountered: