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

Can't compile handlebars for URL scalar property from .gql schema #262

Closed
kirudenk opened this issue Apr 1, 2022 · 2 comments · Fixed by #263
Closed

Can't compile handlebars for URL scalar property from .gql schema #262

kirudenk opened this issue Apr 1, 2022 · 2 comments · Fixed by #263

Comments

@kirudenk
Copy link

kirudenk commented Apr 1, 2022

I have a custom scalar URL and a type that uses it:

"""
A field whose value conforms to the standard URL format as specified in RFC3986: https://www.ietf.org/rfc/rfc3986.txt.
"""
scalar URL

type Course {
...
url: URL,
...
}

When trying to generate docs for that schema using config.yml from the examples I get this error:

Running "compile-handlebars:compile" (compile-handlebars) task
Task error: [TypeError: this[kFormat] is not a function
  at Object.toJSON (internal/url.js:691:27)
  at JSON.stringify (<anonymous>:null:null)
  at _stringify (/Users/.../spectaql/node_modules/json-stringify-pretty-compact/index.js:34:19)

When I change course to:

type Course {
...
url: String,
...
}

everything works. Also I didn't have that issue with 0.15.0 version. Thanks!

@newhouse
Copy link
Collaborator

newhouse commented Apr 2, 2022

Should be fixed in 1.0.5...

@kirudenk
Copy link
Author

kirudenk commented Apr 4, 2022

@newhouse Thanks!

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

Successfully merging a pull request may close this issue.

2 participants