markhuot / craftql

A drop-in GraphQL server for Craft CMS
Other
320 stars 53 forks source link

Error on installation, won't run helloWorld test #299

Open studiolathe opened 5 years ago

studiolathe commented 5 years ago

Starting a new project using Craft headless w/ Nuxt.js and have installed CraftQL but am receiving the below error when running helloWorld test or any other queries when testing with GraphiQL. Not sure what I am doing wrong?

Query:

{
  helloWorld
}

Error:

{
  "error": "\"continue\" targeting switch is equivalent to \"break\". Did you mean to use \"continue 2\"?"
}

Running locally on:

PHP version: 7.3.7
Craft edition & version: Craft Solo 3.2.8
CraftQL: 1.3.2

Any help or examples of using Craft headless w/ Nuxt.js would be greatly appreciated!

studiolathe commented 5 years ago

Have been able to fix the issue by changing my MAMP Pro 5.x PHP settings from 7.3.7 to 7.2.20.

@markhuot is this expected behaviour or does the plugin only currently work with PHP 7.2.x?