Skip to main content

Questions tagged [jss-rendering-sdk]

It is a complete SDK for JavaScript developers that enables building full-fledged solutions using Sitecore and modern JavaScript UI libraries and frameworks. Any question around this can make use of this tag.

Filter by
Sorted by
Tagged with
1 vote
2 answers
47 views

Sitecore JSS: How to Hide Sitecore API Key in Client-Side JavaScript File

We have a Sitecore JSS server-side rendering mode, which uses Node.js and React.js as the tech stack. Unfortunately, the API key and API host are written in the JavaScript files. How can we avoid this?...
Andi AR's user avatar
  • 763
0 votes
1 answer
40 views

Placeholder item in Swiper slide

We are using SwiperJs for the carousel. There is a placeholder with multiple items and I want to render each item of the placeholder in a SwiperSlide. How can I render? I am trying to achieve it in ...
SSC's user avatar
  • 1
0 votes
1 answer
113 views

Sitemap.xml and Robots.txt giving 404 error in Headless mode of Sitecore

I'm utilizing Sitecore Headless mode with React in an SSR app, along with a Sitecore 10.3 JSS SXA setup that includes Sitemap.xml and robots.txt enabled and published. I'm encountering an issue where ...
Nikhil Bidhuri's user avatar
0 votes
2 answers
51 views

What version of Sitecore JavaScript Rendering SDK CLI Tools is compatible with Node version 16

Need to integrate sitecore-jss-cli into ReactJS application. The node version currently used is Node 16.13.0. The latest JSS cli version 21.6.4 is not compatible with this node version. what version ...
Priyadarshini's user avatar
0 votes
1 answer
66 views

Steps to create a mono repo with sitecore jss starter template

I am using this template to create my sitecore solution. I am planning to convert the sxastarter folder into a monorepo. So the folder structure will be something similar to this. Obviously my ...
Lahiru Lanka Rathnayaka's user avatar
0 votes
1 answer
73 views

How to handle client or server side errors that occurred in placeholder renderings

I am new to both Sitecore and next.js 13.5+ I created a scaffolded nextjs jsssitecore application using npx create-sitecore-jss nextjs I am trying to create centralized error boundary. When there are ...
SSC's user avatar
  • 1
1 vote
1 answer
86 views

"Writing generate-component-builder plugins" fails on JSS app build

There is a NextJS + React + JSS app. After upgrading to the latest JSS version (21.4.0 ATM) and installing Multisite plugin, the following error appeared on build: Writing generate-component-builder ...
Serhii Shushliapin's user avatar
0 votes
0 answers
42 views

Dynamic Screens in mobile APP using Sitecore CMS

Is it possible to control mobile screens/layout using Sitecore CMS? I have a requirement to modify the mobile screen based on data from Sitecore JSS. Using a configuration is also acceptable. Is it ...
Harikrishnan N's user avatar
0 votes
1 answer
148 views

JSS Placeholder Children

I'm developing a carousel using JSS. The items that would go into the carousel are well known (through the Placeholder Settings), but I am using a Placeholder to hold those items. I need to get the ...
Gary Williams's user avatar
2 votes
0 answers
184 views

Error occurred during POST to remote rendering host: `http://localhost:5000

I am facing an issue on CD server on production, the website is working fine, but there are a lot of errors in the logs that says: "[JSS] Error occurred during POST to remote rendering host: ...
Jose's user avatar
  • 63
1 vote
1 answer
467 views

Sitecore JSS deploy throws unexpected response from import status service

I am running into an error while I deploy the JSS application using the command jss deploy app -c -d Fresh vanilla Sitecore 10.2 XM Sitecore Headless Rendering 20.0.2 on top of it Node v18.16.0 npm ...
Jey's user avatar
  • 343
1 vote
2 answers
415 views

Sitecore JSS update content item

I have created a hello world JSS application with Angular + Rest application. I have deployed the application to my local sitecore 10.3. Later, i have created a new component and i am able to add the ...
Jey's user avatar
  • 343
0 votes
2 answers
241 views

Access layout service response sitecore.context object in Layout.JS file

In JSS react how to access the layout service response object sitecore.context in src/Layout.js. If you look at src/Layout.js file, In default we can access only sitecore.route fields but not sitecore....
Andi AR's user avatar
  • 763
1 vote
0 answers
29 views

Sitecore jss with ionic app [closed]

Has anyone tried sitecore jss app with ionic angular app or any other hybrid app which allows mobile and web deploys from same code.
Vrunda Shah's user avatar
0 votes
1 answer
1k views

A rendering error occurred: Cannot read properties of undefined (reading 'attributes')

I have Setup the JSS application with Sitecore 10.3. When I am adding the components on page level its working fine but when I added them on partial design they are appearing fine there in experience ...
Vishal Khera's user avatar
1 vote
1 answer
4k views

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions' while installing Sitecore Headless Rendering [closed]

I have a Sitecore 10.2 local instance. When I tried to install Sitecore Headless Rendering 20.0.2 from Sitecore Headless Rendering, it gave an exception. Could not load file or assembly 'Microsoft....
Abhishek Malaviya's user avatar
1 vote
2 answers
317 views

Sitecore forms - Conditional logic not working with JSS app

Sitecore Forms field conditions are not working with JSS form package in Sitecore Version 10.2. Does it require custom implementation? My Code: import { Form } from '@sitecore-jss/sitecore-jss-react-...
Krithvik TRS's user avatar
1 vote
1 answer
878 views

ERROR [JSS] Error occurred during POST to remote rendering host: `http://localhost:3000/api/editing/render`

We are running Next.js JSS app using XM Cloud docker setup, our localhost:3000 site is loading, but when we are trying to run Experience Editor it is giving 2 erros. On First Try we are getting below ...
Mahesh Kumar's user avatar
0 votes
0 answers
74 views

ASP.NET Rendering SDK with CM on the IIS site is throwing 500 error

ASP.NET Rendering SDK with CM on the IIS site is throwing 500 error and no custom code, it is plain vanilla empty site with style guide comes with SDK install. We are NOT using docker. Sitecore 10.3 ...
SNew's user avatar
  • 151
1 vote
1 answer
324 views

Sitecore JavaScript Rendering SDK (JSS) for Next.js. TypeError: Cannot destructure property 'datasource' of 'props.fields.data' as it is undefined

Issue: TypeError: Cannot destructure property 'datasource' of 'props.fields.data' as it is undefined. Sitecore Experience Platform 10.2 (Sitecore Installation Framework (SIF) PowerShell module) ...
Steve's user avatar
  • 11
0 votes
2 answers
209 views

Can props.fields ever be null in a Rendering Component?

I'm creating custom types for components in TypeScript (with strict null checks enabled) and I want to confirm if it makes sense to be doing null checks on props.fields, eg.: if (!props.fields) { ...
Marcel Gruber's user avatar
1 vote
1 answer
714 views

Allow CORS request from CM to Rendering host

Related to Missing fonts when previewing Next.js app in Experience Editor. I've got the Rendering container with SITECORE_API_HOST set to CD. In CM Experience Editor I see some CORS errors caused by ...
Serhii Shushliapin's user avatar
2 votes
1 answer
630 views

How could we apply Hybrid (SSG and SSR) rendering with Sitecore Nextjs

How could we apply Hybrid (SSG and SSR) rendering in a single Sitecore Nextjs application? We tried this article: https://github.com/Sitecore/jss/tree/release/18.0.0/samples/nextjs/src/pages https://...
Vision's user avatar
  • 21
1 vote
1 answer
82 views

Alternative way of calling Layout API from .Net core App

In Sitecore 10.2 (Using .Net Core rendering SDK), is there any altervative way to call Layout API apart from below example. public class DefaultController : Controller { [...
Sushil Pal's user avatar
0 votes
1 answer
112 views

Sitecore JSS is logging complete Layout data on node Proxy

Our log data on proxy server is increasing because Sitecore JSS is logging complete layout service data in logs, we want to know if there is a way to stop logging.
Mohd Kashif's user avatar
0 votes
3 answers
757 views

Sitecore jss 20.0.3 install error: Unexpected token '.'

I am on the latest version of node (18.7.0), all I am doing is trying to install a test Sitecore jss app. But the first step itself is giving me this error. Is there any version compatibility I should ...
Durga Bose's user avatar
0 votes
1 answer
163 views

Visual Studio Project purpose & templates for ASP.NET Rendering SDK application

This is how the Helix example is structured and I'm trying to understand it. The *.rendering in the Project layer looks like an ASP.NET Core template but the *.rendering projects in the Feature layer ...
sukesh's user avatar
  • 3,162
1 vote
1 answer
333 views

Aspcore Rendering SDK - Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Unexpected character encountered while parsing value:

We have created a solution based on template sitecore.aspnet.gettingstarted for Sitecore ASP Net Core Rendering SDK headless. Pushed all the Sitecore items available in this solution successfully and ...
Jitendra's user avatar
  • 1,038
6 votes
1 answer
590 views

Current project does not support file deployment into Sitecore instance

I've created a sample nextjs app using jss cli, but when I try to deploy it using: jss deploy app it deploys items successfully, but not files and throws the message below: The current project does ...
Alexander's user avatar
  • 1,273