Skip to content

Is nexus-plugin-prisma compatible with JS? #1338

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

Closed
Jmales opened this issue Jul 19, 2020 · 2 comments
Closed

Is nexus-plugin-prisma compatible with JS? #1338

Jmales opened this issue Jul 19, 2020 · 2 comments
Labels
type/docs Relates to knowledge transfer matter (refs, guides, tuts, examples, ...)

Comments

@Jmales
Copy link

Jmales commented Jul 19, 2020

Hey guys!

I'm trying for hours to configure this plugin in my Javascript NextJS project. I'm finding several issues with nexus, namely nexus failing "nexus dev" command, stating that it needs a proper .ts entrypoint file as well as a tsconfi.json

The few examples in your github are TS projects.

So, is this compatible or not with a Javascript? If it is, can you please, provide a working example?

@Jmales
Copy link
Author

Jmales commented Jul 20, 2020

I ended up changing my project to Typescript, but allowing JS to exist in the project. That way, I was able to correctly set nexus within my project.

@jasonkuhrt jasonkuhrt transferred this issue from graphql-nexus/nexus-plugin-prisma Aug 7, 2020
@jasonkuhrt
Copy link
Member

jasonkuhrt commented Aug 7, 2020

Hey @Jmales the framework does not officially support JS yet #85. Your solution is clever good job. I will turn this into a docs issue. Your solution should be mentioned as a workaround.

@jasonkuhrt jasonkuhrt added the type/docs Relates to knowledge transfer matter (refs, guides, tuts, examples, ...) label Aug 7, 2020
@Jmales Jmales closed this as completed Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Relates to knowledge transfer matter (refs, guides, tuts, examples, ...)
Projects
None yet
Development

No branches or pull requests

2 participants