faustjs icon indicating copy to clipboard operation
faustjs copied to clipboard

Bug: graphql.print is not a function

Open DannyAgent opened this issue 3 years ago • 1 comments

Following this tutorial https://faustjs.org/docs/tutorial/setup-faustjs

Fails at "npm run generate"

Using "{OUR_DOMAIN}//graphql" to generate schema... [TypeError: graphql.print is not a function] npm ERR! code ELIFECYCLE

Applicable Versions

"@faustjs/core": "^0.15.6", "@faustjs/next": "^0.15.6",

  • WordPress version: 5.9.3

Steps To Reproduce

  1. Follow tutorial up to "npm run generate"

DannyAgent avatar Jun 01 '22 15:06 DannyAgent

This bug can be worked around by installing an older version of graphql (15.8.0).

DannyAgent avatar Jun 06 '22 07:06 DannyAgent

@DannyAgent Thanks for reporting this!

Do you mind trying this again using {OUR_DOMAIN}/graphql instead of {OUR_DOMAIN}//graphql?

josephfusco avatar Aug 11 '22 14:08 josephfusco

Hi, thanks for your response. I'm no longer working on the project that I had this issue with. However, I believe that the // may have been a typo in my original question, but not 100% sure. Sorry I can't be any more help than that.

DannyAgent avatar Aug 11 '22 14:08 DannyAgent

I'm closing this issue due to inactivity.

theodesp avatar Aug 24 '22 08:08 theodesp