Skip to main content
edited tags
Link
Gatogordo
  • 20.3k
  • 2
  • 39
  • 100
Source Link
Gatogordo
  • 20.3k
  • 2
  • 39
  • 100

Which JSS version for Sitecore 10.2?

I am trying to setup a JSS app on Sitecore 10.2 (with SXA) but that is not going as expected.

I checked the downloads page for Headless Rendering and that mentions version 20.0.2 as latest now compatible with Sitecore 10.2. This install went fine. Creating a headless site with SXA seems to have worked and our graphQL playground is working.

I assumed that for the actual front-end app I had to use the same version (https://sitecore.stackexchange.com/a/30563/237 confirms that) so I used "npx create-sitecore-jss@ver20 --templates nextjs,nextjs-sxa ..." to do a setup and that created a nextjs app for me. Did the rest of the setup and config deploys and that seemed to go well - but when I start the site I get an error: Cannot query field "site" on type "Query".

Apparently the RedirectsQuery is doing a graphQL query for "sites" which is not supported. If I try that in my graphQL-UI it is indeed not in the schema. It is as from 10.3 however.

So now I'm thinking I have some wrong version somewhere.. so the question is actually if anyone has an idea what version I should be using on a Sitecore 10.2?