Skip to main content
added 47 characters in body
Source Link
Gautam
  • 671
  • 3
  • 15

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-[your front end app name ].config file (in my case it was jss-nextjs-app) inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was the reason why I was not getting any sxa placeholder.

Solution

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-app.config file inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was the reason why I was not getting any sxa placeholder.

Solution

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the [your front end app name ].config file (in my case it was jss-nextjs-app) inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was the reason why I was not getting any sxa placeholder.

Solution

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

deleted 165 characters in body
Source Link
Gautam
  • 671
  • 3
  • 15

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-app.config file inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was the reason why I was not getting any sxa placeholder.

Solution

Just change the layoutServiceConfiguration value from "jss" to sxa-jss in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config

OR

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-app.config file inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was reason why I was not getting any sxa placeholder.

Solution

Just change the layoutServiceConfiguration value from "jss" to sxa-jss in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config

OR

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-app.config file inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was the reason why I was not getting any sxa placeholder.

Solution

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

Updated and highlighted the description
Source Link
Sumit Bhatia
  • 5.9k
  • 2
  • 9
  • 25

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case iI have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design iI added one of my json rendering, when iI was trying to open my homehome page in EE iI was getting the hydrating error and in logs iI was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data""Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging iI noticed that this issue is coming in one of the JavaScript filefiles (Placeholder.jsPlaceholder.js) added by "Sitecore-jss-react"Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case "sxa-wwwheader"sxa-wwwheader

enter image description here

When iI checked the "jss-nextjs-app.config"jss-nextjs-app.config file inside my sitecoreSitecore local instance path "inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz"inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config" /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When iI checked the values in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config"/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my "layoutServiceConfiguration"layoutServiceConfiguration was only "jss", and that was reason why iI was not getting any sxa placeholder.

Solution

Just change the "layoutServiceConfiguration"layoutServiceConfiguration value from "jss" to "sxa-jss"sxa-jss in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config"/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config

OR

Change the value of layoutServiceConfigurationlayoutServiceConfiguration from "default" to "sxa-jss" in "inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config"inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case i have created one partial design named "wwwheader", added this to page design and linked that page design to my home page. In that partial design i added one of my json rendering, when i was trying to open my home page in EE i was getting the hydrating error and in logs i was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging i noticed that this issue is coming in one of the JavaScript file (Placeholder.js) added by "Sitecore-jss-react" node package, None of the sxa renderings were getting the placeholders, In my case "sxa-wwwheader"

enter image description here

When i checked the "jss-nextjs-app.config" file inside my sitecore local instance path "inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz" there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config" enter code here

When i checked the values in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config" my "layoutServiceConfiguration" was only "jss", and that was reason why i was not getting any sxa placeholder.

Solution

Just change the "layoutServiceConfiguration" value from "jss" to "sxa-jss" in "/App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config"

OR

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in "inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config".

I was also facing the same error while using Sitecore 10.3 with SXA and JSS and was able to resolve that by one simple configuration change.

What was the issue

In my case I have created one partial design named "wwwheader", added this to the page design and linked that page design to my home page. In that partial design I added one of my json rendering, when I was trying to open my home page in EE I was getting the hydrating error and in logs I was having "Placeholder 'sxa-wwwheader' was not found in the current rendering data" error.

enter image description here

Debugging

After some debugging I noticed that this issue is coming in one of the JavaScript files (Placeholder.js) added by Sitecore-jss-react node package, None of the sxa renderings were getting the placeholders, In my case sxa-wwwheader

enter image description here

When I checked the jss-nextjs-app.config file inside my Sitecore local instance path inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz there is one node for "Jss App Registration" and this jss app needs to be registered in order to support layout service and import services. There are many available attributes, and they inherit the defaults if not explicitly specified here. Defaults are defined in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config enter code here

When I checked the values in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config my layoutServiceConfiguration was only "jss", and that was reason why I was not getting any sxa placeholder.

Solution

Just change the layoutServiceConfiguration value from "jss" to sxa-jss in /App_Config/Sitecore/JavaScriptServices/Sitecore.JavaScriptServices.Apps.config

OR

Change the value of layoutServiceConfiguration from "default" to "sxa-jss" in inetpub\wwwroot\sitecorejss103sc.dev.local\App_Config\Include\zzz\jss-nextjs-app.config.

added 1 character in body
Source Link
Gautam
  • 671
  • 3
  • 15
Loading
added 1 character in body
Source Link
Gautam
  • 671
  • 3
  • 15
Loading
Source Link
Gautam
  • 671
  • 3
  • 15
Loading