Closed guyjacks closed 6 years ago
I found this issue on the Gatsby repo: https://github.com/strapi/gatsby-source-strapi/issues/6
I am having this error
error Cannot query field "allStrapiArticle" on type "Query" graphql/template-strings
where should I add the scripts? I added to gatsby-source-strapi/package.json and the error still exisit.
Add to package.json scripts
"postinstall": "ruby -pi -e \"gsub(/^(\s+)return clean\(item\);/,'\1item.id=item.id.toString();return clean(item);')\" ./node_modules/gatsby-source-strapi/fetch.js"
I just fix the problem... I was so stupid that i forgot to start the strapi service....
I just ran into a similar issue with Strapi and Gatsby. My issue was not solved with restarting Strapi. It had to do with User roles and permissions. The link to the issue bellow helped out:
https://github.com/strapi/strapi/issues/3385#issuecomment-499181665
Hope this helps!
Trying to follow this tutorial, but I keep getting the following error