-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Wrong import of type Prisma in Flow Example #310
Comments
Thanks for opening this issue. What exactly is the error you're seeing? I can't reproduce it at the moment, everything works fine for me when using the instructions from the README. Can you please post the error message you're seeing and explain when exactly the error occurs? |
First thing, there is no @ sign in front of flow in line 2 https://github.com/prisma/prisma-examples/blob/master/flow/graphql/src/types.js After adding it. It can't recognize path After changing path there is following flow error:
|
Thanks, do you want to submit a PR to fix this? Otherwise I can look into it later today :) |
I think that it will be better when you will have look into this. My solution is just workaround for issue that generated types don't export |
Edit: Hmm, I realize this probably not what we want - but indeed we probably want to export the |
This is fixed in beta version |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
I've found error while trying out your Flow graphql example
There is not correct import of type Prisma in file
types.js
https://github.com/prisma/prisma-examples/blob/master/flow/graphql/src/types.js
There is work around which works for me
based on facebook/flow#4002 (comment)
Another option would be exposing PrismaInterface from
prisma-examples/flow/graphql/src/generated/prisma-client/index.js
Line 31 in a743b26
The text was updated successfully, but these errors were encountered: