craftql icon indicating copy to clipboard operation
craftql copied to clipboard

Error on installation, won't run helloWorld test

Open studiolathe opened this issue 5 years ago • 1 comments

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 avatar Aug 05 '19 12:08 studiolathe

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?

studiolathe avatar Aug 06 '19 06:08 studiolathe