Skip to content
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

Schema file not found #66

Open
arnarthor opened this issue Jan 4, 2019 · 4 comments
Open

Schema file not found #66

arnarthor opened this issue Jan 4, 2019 · 4 comments

Comments

@arnarthor
Copy link

I'm trying to use the -schema parameter but I keep getting this error

Fatal error: exception Failure("graphql_ppx/ppx -schema=../shared/src/customerapi/graphql_schema.json not found when resolving ppx-flags")

No matter where I locate the schema file, it's always the same error. Having it as schema.json in the same folder as bsconfig also producec this error.

I've also tried it with graphql_ppx/ppx\\ -schema=... like mentioned for bs-platform 4.0.2 in #50.

Any ideas?

@mhallin
Copy link
Owner

mhallin commented Jan 17, 2019

Hello!

The file should be named graphql_schema.json. I will look into as to why specifying the filename does not work.

@baldurh
Copy link

baldurh commented Mar 14, 2019

@mhallin have you had the chance to look into this? 😬

@idkjs
Copy link

idkjs commented Jun 28, 2019

I have this which isnt working either:

  "ppx-flags": [
    "graphql_ppx/ppx\\ -schema=graphql_schema.json"
],

@nirvdrum
Copy link

nirvdrum commented Sep 4, 2019

@idkjs I spent a while this evening trying to work this out. As of BuckleScript 5.1.0, the following works for me:

"ppx-flags": [
    ["graphql_ppx/ppx", "-verbose", "-schema=lib/js/src/graphql/schema.json"]
  ],

I'm new to the ecosystem, so I'm not really sure when it broke or was fixed. It appears this one has ping-ponged a few times. It looks like the array of arguments is the syntax going forward though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants