Skip to main content
5 votes
Accepted

Current project does not support file deployment into Sitecore instance

At this point it is possible to use this approach below for nextjs app if it is needed to use Sitecore capabilities: jss start:connected After that, you can open the home page in Experience Editor, ...
Alexander's user avatar
  • 1,273
3 votes
Accepted

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

As I learned during the Sitecore 10 development, there are two kinds of projects we use while Developing with the ASP.NET Core Rendering SDK. They are as follows. RenderingHost project: It is the ...
Sumit Bhatia's user avatar
  • 5,105
3 votes

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

An easy way to apply hybrid rendering (SSG and SSR) with Sitecore and Next.js, you can utilize different routes and configurations. First, for your default routes, you can leverage static site ...
André Moraes's user avatar
2 votes

Sitecore forms - Conditional logic not working with JSS app

The JSS React Forms sample does not implement conditions, and you'll need to implement this. See more info here: https://www.codehousegroup.com/insights/sitecore-forms-and-jss-conditional-logic-in-...
Andrey Krupskiy's user avatar
1 vote
Accepted

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

You make request from Sitecore container. localhost on the Sitecore container is not equal to localhost on your local machine. Localhost inside container is this container address. You can't request ...
Anton's user avatar
  • 3,831
1 vote

Allow CORS request from CM to Rendering host

Solved adding Access-Control-Allow-Methods header: async headers() { return [ { source: '/_next/static/media/:path*', headers: [ { key: 'Access-Control-Allow-Origin', value: '...
Serhii Shushliapin's user avatar
1 vote
Accepted

Alternative way of calling Layout API from .Net core App

Update rendering engine with a query parameter in configure services services.AddSitecoreRenderingEngine(options => { //Register your components here ...
Ravi Nigam's user avatar
1 vote

Sitecore jss 20.0.3 install error: Unexpected token '.'

I did the same with this configuration that you are using. Then I run the following command and see the output. npm install -g @sitecore-jss/[email protected] Then I run the same command that ...
Sumit Bhatia's user avatar
  • 5,105
1 vote

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

In my case, configuration at the CM website was wrong. <?xml version="1.0"?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www....
Jitendra's user avatar
  • 1,038
1 vote

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

This issue arises because the repository contains these details somewhere. Ensure that your scconfig.json or .env file does not contain the SITECORE_API_KEY and SITECORE_API_HOST. By the way, why isn'...
Andi AR's user avatar
  • 763
1 vote

Sitecore JSS update content item

As per the Sitecore document, For the import to work, your JSS import user must have the correct permissions. To make sure the user has the right permissions, go to the Content Editor, open the ...
Sumit Bhatia's user avatar
  • 5,105
1 vote
Accepted

Sitecore JSS update content item

JssImport service is unable to create/update an item under Content item. So this is the permission problem. You can use 2 approaches here. Provide access to user sitecore\JssImport to Sitecore\...
Sumit Helaiya's user avatar
1 vote

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

We can get Sitecore context using by importing sitecore-jss-react on the component import { withSitecoreContext } from '@sitecore-jss/sitecore-jss-react'; and use this service to access context item ...
Praveen Soni's user avatar
1 vote
Accepted

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

We can achieve this in one way. Go to \src\RouteHandler.js here sitecore.context will be available. Change the line like below, (This will pass context object to layout) // Original line return <...
Andi AR's user avatar
  • 763
1 vote
Accepted

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

I was also facing some issues in headless SXA with Sitecore 10.3 while using partial designs but my errors were different. Nonetheless Can you please check 2 things? Value of Layout service ...
Gautam's user avatar
  • 597
1 vote

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

When instatlling Sitecore Headless Rendering package it included set of files like config, Dlls, module items, and view. There are DLLs that refer Microsoft.Extensions.DependencyInjection.Abstractions ...
Sumit Helaiya's user avatar
1 vote
Accepted

Sitecore forms - Conditional logic not working with JSS app

Here is a blog that you can refer to know more about JSS – Conclusions after couple of months in large-scale project and you will find some analysis and here is the one that you are looking for. ...
Sumit Bhatia's user avatar
  • 5,105

Only top scored, non community-wiki answers of a minimum length are eligible