Gatsby-theme-novela: Bug: build fail "Cannot query field "allContentfulAuthor" on type "Query"."

Created on 18 Jan 2020  路  22Comments  路  Source: narative/gatsby-theme-novela

Version of Novela you are using
Latest

Describe the bug
image

https://github.com/narative/gatsby-theme-novela/commit/2427e7d0bb33164844c14089a3ec0a72fedcd8e2/checks?check_suite_id=407897765

@brotzky ran into this trying to finally fix the CI/CD workflow. Are you aware?

bug priority

Most helpful comment

@brotzky it's currently failing all the GH actions workflow so it's preventing check on PR and the auto release. I'm not sure how to handle that (or if I can actually). Fixing this would close a couple of open issues and the CI/CD migration project.
Don't mean to guilt-trip you or anything - just if you could put that in your novela-priorities list 馃槆

All 22 comments

Looks like it broke on 9aac6a4 (workflow log) as 7d90e9d was building.

@jpvalery may it be this error? https://github.com/gatsbyjs/gatsby/issues/15397

It seems pretty old and the issue just started happening. I see that Dennis already participated in that issue so he should be aware if it's still the same thing :)

@jpvalery hmm, think you are right. I suppose thats why he started using contentful as a source for the example app and not local. I made a pr here to see if switching it to local fixed the issue but no luck. Seems to be the error actually described in https://github.com/gatsbyjs/gatsby/issues/15397 now.

As discussed at https://github.com/narative/gatsby-theme-novela/pull/254#issuecomment-576847221 - not fixed yet :(

This error has been fixed, so I agree that this ticket should be closed, BUT, a new issue should be opened to tackle the new build error. A different solution I think needs to be proposed there.

Fix one bug another arises. There is no other way.

The new error is the one mentioned in https://github.com/gatsbyjs/gatsby/issues/15397.

Personally I want to get my blog up and running with the new theme sooner than later. I'll probably just fork this theme and rip out Contentful which is causing the error in a separate fork.

I hope my attempt was helpful.

I tried to build after updating all the packages to the latest version. The build was successful.

But ... I could see another error.
I hope this problem is resolved quickly.

image

Oh! I re-try upgrade all node_modules.

FINALLY, I success build!

Here is the commit of my branch forked latest master branch

However, I did not create a PR because I updated all node_modules.
Because I don't know what side effects the update will have.

_I'm a newbie of the gatsby & node, so I have trouble checking side effects and I couldn't upload a PR. I'm sorry._

Below are the major changes in addition to the node_modules upgrade.

  1. Delete dependency, [@narative/gatsby-theme-novela] in package.json of the [www] folder.
    -> This is not necessary, It didn't remove it, it built normally.
  2. Delete dependency, [gatsby-remark-typescript] in package.json of the [@narative/gatsby-theme-novela] folder. This is deprecated.
  3. The [gatsby-plugin-feed] has been changed to enter additional title information. (Documents)

And this is my node & yarn version.
image

I hope resolved soon.

@eugenejeonme

  1. Delete dependency, [@narative/gatsby-theme-novela] in package.json of the [www] folder.

I think the point of that app is to showcase the novela theme.

@eugenejeonme

  1. Delete dependency, [@narative/gatsby-theme-novela] in package.json of the [www] folder.

I think the point of that app is to showcase the novela theme.

I know, that means of the dependency.

I thought it didn't need that dependency to build the code for this repository.
The novela theme is also specified in the gatsby-config.json file.

Oh! And I added that as your answer and built it.
It can be built normally without any problem.

Thank you for the point! 馃憤

You need to reference the package because of how you build Gatsby themes locally. It's not the nicest aspect of themes to have to setup yarn workspaces but it makes sense and is approachable thanks to Gatsby's documentation.

Stuck with this issue, any update?

Stuck with this issue, any update?

Fixed !

@brotzky i know you're swamped lately but is this still on your radar?

@sgorki what was the fix?

@jpvalery I haven't been following this issue too closely :s

@brotzky it's currently failing all the GH actions workflow so it's preventing check on PR and the auto release. I'm not sure how to handle that (or if I can actually). Fixing this would close a couple of open issues and the CI/CD migration project.
Don't mean to guilt-trip you or anything - just if you could put that in your novela-priorities list 馃槆

Has this been addressed yet? I try tried to deploy this and getting the same errors:

Cannot query field "social" on type "ContentfulAuthor".
ERROR #85923 GRAPHQL

"@narative/gatsby-theme-novela" threw an error while running the createPages lifecycle:
ERROR #11321 PLUGIN

Im not sure if it has been fixed. @techandsec you're welcome to give it a shot :) Thanks!

Still facing this issue

Still getting the same error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brotzky picture brotzky  路  4Comments

MartinRosenberg picture MartinRosenberg  路  3Comments

bravo-kernel picture bravo-kernel  路  4Comments

slorber picture slorber  路  3Comments

rommelporras picture rommelporras  路  4Comments