Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
studiolathe opened this issue Aug 5, 2019 · 1 comment
Open

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

studiolathe opened this issue Aug 5, 2019 · 1 comment

Comments

@studiolathe
Copy link

studiolathe commented Aug 5, 2019

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
Copy link
Author

studiolathe commented Aug 6, 2019

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?

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

No branches or pull requests

1 participant