As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
3 votes
2 answers
465 views

Sitecore JSS URL redirecting to not found

Getting the below error when browsing the app URL in connected mode: On browsing https://xyz-app.dev.local it gets redirected to https://xyz-app.dev.local/sitecore/service/notfound.aspx I can see the ...
0 votes
1 answer
73 views

Sitecore Embedded Form - Form Id is not specified in Sitecore JSS

I'm trying to build the Embedded form on the website. So I have created a form on the Sitecore website and Sitecore API Key based on here browse load the HTML website faced the below error My HTML ...
1 vote
1 answer
620 views

How do I create unique Sitecore JSS Dynamic Placeholders?

I have JSS Next.JS based component, I want to have 2 placeholders with the same key, but with a dynamic suffix. e.g. I need 2 equal columns. <div> <Placeholder name='jss-6' rendering={...
5 votes
4 answers
558 views

SXA headless with (partial) design: placeholder not found

I am using Sitecore 10.3 with SXA and JSS. For the head setup I used a post from Dan Cruickshank and that worked fine. I did get a nice blank homepage and no errors. I created 3 partial designs and ...
0 votes
2 answers
63 views

Experience editor doesn’t allow edit data-source properties option for nested data-source items

We have a Datasource item having child items where root item is like a folder - inherited from standard template and allow some insert options to crate the child items. Root item given as a data ...
1 vote
1 answer
269 views

Headless Dictionary Service not working

I am using Sitecore Headless Services Server XM 18.0.0, and the Layout Service(like: /sitecore/api/layout/render/jss?item=) is working just fine. But when I tried to use the Dictionary Service I got ...
1 vote
2 answers
212 views

Handle CSS and JavaScript files in Sitecore Headless Implementation

I am looking for inputs to manage Static Resources (CSS and JS files) in headless implementation. Are you having single CSS and JS files for your Website and Components? Using one CSS and JS file ...
0 votes
0 answers
23 views

disable move/add/delete component for specific placeholder in Experience Editor via code

In my NextJS/JSS/TS site, I am rendering the same placeholder twice within a single component. I would like to make one of the placeholders read only in the sense that components within it cannot be ...
0 votes
0 answers
15 views

"dot net build" command is throwing error because of Package References in Next Js Starter Kit project for Sitecore 10.2

I have downloaded the Next JS Starter kit for Sitecore 10.2, and adding cs files on it. I need to add Sonar cube, build.yml file in the solution. Sonar runs dotnet build and dot net build command ...
1 vote
1 answer
53 views

Sitecore Headless Service Install on AKS

I want to deploy Sitecore Headless Service on AKS But unable to find any reference code for official and unofficial code. But I got this link for Docker for references - https://github.com/Sitecore/...
1 vote
2 answers
69 views

JSS component is missing React implementation. See the developer console for more information. In XM Cloud portal (SXA-JSS)

I am trying to render a custom Next.js component for XM Cloud. In the Experience Editor that component shows the following error: JSS component is missing React implementation. See the developer ...
3 votes
2 answers
469 views

How to solve JSS application error "Error: Valid value for rootItemId not provided and failed to auto-resolve app root item."

When I deploy a JSS Next.js application to Sitecore (XM Cloud on local container, Sitecore demo portal) I get the following error when I run my Next.js application on http://localhost:3000: In text: ...
0 votes
1 answer
163 views

Sitecore experience editor not opening in editing mode (Intermittent)

We are having a Sitecore 10.3 XM NextJS docker instance. Sometimes Our Experience editor not loading properly in editing mode(loading like a regular page). This is intermittent though. This is an ...
1 vote
2 answers
52 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 ...
0 votes
2 answers
70 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....
3 votes
1 answer
119 views

How to replace custom token that is in RichText field using Sitecore JSS?

I have a custom token %tokenname% in single line text and richtext fields. I would like to replace the token with some custom value in the Sitecore JSON rendering. Please see some example data below: {...
1 vote
1 answer
134 views

Sitecore 9.3 JSS - controller for path '/api/jss/formbuilder' was not found

I'm trying to apply my Sitecore Form on my JSS application through the Forms API. The form was rendered properly, but when I tried to submit I got this error: What could be the cause of this? My ...
3 votes
1 answer
329 views

Why JSS Layout Service default resolver differently resolves reference fields of the same item, leaving some with the reference item context or ID?

JSS Layout Service default resolver resolves reference fields with full referenced item context, but other reference fields leaves with the ID of the referenced item. For example there is an item, ...
6 votes
3 answers
882 views

On content delivery server, /-/jssmedia link breaks, /-/media link works

We have deployed a jss app to a Content Delivery server. We have followed instructions to add jss support to the server role. Links to media items generated by Image components begin with /-/...
1 vote
2 answers
44 views

Sitecore JSS Import Service issue

I have installed the plain Sitecore 10.3 XP in my local. Installed the Sitecore headless rendering 21.0.1 package from this URL https://dev.sitecore.net/Downloads/Sitecore_Headless_Rendering/21x/...
2 votes
0 answers
135 views

Mock useSitecoreContext in Nextjs unit tests

I'm trying to write simple unit tests with Jest and mock useSitecoreContext. When I'm mocking the useSitecoreContext like this: useSitecoreContext: jest.fn() I'm getting an error "Cannot ...
1 vote
1 answer
224 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://...
1 vote
1 answer
163 views

Incorrect ItemSearchResults generated by "jss graphql:update" command Sitecore 10.2

Can anyone help me with this issue? Install NextJs app: npx create-sitecore-jss nextjs jss deploy config, jss setup , jss deploy app Install the Sitecore Headless Services package dotnet sitecore ...
9 votes
3 answers
811 views

How to turn off "JSS Development Workflow"?

We recently switched from code-first to Sitecore-first in our JSS project. In the Sitecore-first approach we now use Unicorn to serialize/sync Sitecore structure and content. However the JSS ...
1 vote
1 answer
877 views

Error: spawn 'Files\Git\dist\' ENOENT - The system cannot find the path specified

I have installed a fresh Sitecore 9.2 install and I'm trying to deploy an existing react solution to my local. When I run the npm build task I get the following error. > my-sitecore-site@1.2.0 ...
1 vote
1 answer
140 views

Cd url is going to 404

I have downloaded Sitecore Next JS containers setup and installed XP1 in our local instance. But the default CD url is going to 404. The CM Sitecore url including Experience Editor & Preview and ...
2 votes
1 answer
151 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 ...
1 vote
0 answers
18 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.
2 votes
2 answers
370 views

GraphQL Component Query does not effect Layout Service response

Environment: Sitecore 10.2 XM Headless 20 SXA 10.2 SPE 6.3 Problem When I fill in the Component GraphQL Query field for a Json Rendering with something simple like this: query IntegrationQuery($...
2 votes
1 answer
58 views

Extending or customizing XM Cloud - Sitecore Pages to support droplink editing

Is there a way to extend or customize Sitecore Pages to allow editing droplink or droptree in the side panel for XM cloud, similar to how we can edit the currently supported fields here https://doc....
2 votes
2 answers
765 views

Edit frame with Sitecore JSS

I am using Sitecore 9.2 with JSS and code first approach. I have one component which has datasource, datasource is pointing to folder and folder has some child items. I am getting data using GraphQL, ...
1 vote
2 answers
217 views

SXA Content Tokens in Layout Service

I'm attempting to use a Content Token named BrandName in a Page Title field in a multi-site headless solution (Sitecore 10.1.1 Headless 18). The hope was that I could setup the Standard Values for ...
1 vote
1 answer
62 views

Headless/JSS 20 NextJS Prefetch mode

We're building a NextJS app using JSS 20. Next's prefetching behavior differs from local development: On production environments any links on a page are prefetched (for performance reasons), on local ...
0 votes
1 answer
458 views

Error during build of sample Next.js app

After creating a JSS Next.js app, I'd like to build it with jss build command and deploy, but that gives me GraphQL related error: ./src/components/graphql/GraphQL-ConnectedDemo.dynamic.tsx:114:72 ...
2 votes
1 answer
126 views

I can't access images from my containerized jss app but I can access them from outside, from my host (10.2 - with docker)

I'm rewriting the problem, to put more details. I set up a jss app in a docker container. It's working fine, even the Experience Editor has already been put to work in this environment. It turns out ...
0 votes
1 answer
174 views

SEO Friendly, Bucket-less Item Path Resolver in Layout Service

TL;DR Has anyone been able to use seo-friendly, bucketless urls with the GraphQL Layout Service? Environment Sitecore 10.2 XM Headless 20 NextJS Rendering Host SXA 10.2 SPE 6.3 Background In ...
0 votes
1 answer
65 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.
0 votes
2 answers
115 views

Require login headless dotnetcore

I am working on a project that is using Sitecore in headless mode with DotNetCore as the rendering host. It is hosted in Docker containers but I don't think that should matter. We have a requirement ...
2 votes
1 answer
797 views

NextJS - Cannot destructure property 'datasource' of 'props.fields.data' as it is undefined

Quiet new to NextJS JSS, I'm trying to create a NextJS component which uses integrated GraphQL. But I keep getting this error: import { Text, Link, withDatasourceCheck } from '@sitecore-jss/sitecore-...
0 votes
1 answer
1k views

Sitecore JSS rendering host failed

I am getting below error after creating the JSS App in connected mode. Connection to your rendering host failed with a Not Found error. Ensure the POST endpoint at URL http://localhost:3000/api/...
0 votes
1 answer
556 views

Sitecore forms with Sitecore jss(Angular app)

I am trying to use sitecore forms with Jss angular app, I find this on github and trying to use it in my app https://github.com/bic742/sitecore-jss-angular-forms the form is rendered successfull. but ...
0 votes
1 answer
98 views

Deploy NextJS Headless SXA app into XM1 Container Instance

I am trying to deploy the NextJS Headless SXA app into the Sitecore XM1+ Headless SXA Docker container. For this, i have setup the instance for Sitecore XM1 with following details: SITECORE_VERSION=...
0 votes
0 answers
147 views

Getting Dianoga 6 to work with Sitecore 10.2 Docker Containers, JSS with NextJS and SXA

We are on Sitecore 10.2 Docker Containers + JSS with NextJS + SXA and attempting to configure Dianoga 6.0. We have updated the web transform file (Web.config.xdt) for sitecorejss_media.ashx handler. ...
0 votes
0 answers
24 views

Binding sub types on the rendering host

I've had a requirement to build a new header menu that can contain different types of columns as sub menus. I've built this out in Sitecore templates roughly as follows: Top Level Menu Option Menu ...
6 votes
2 answers
3k views

Unexpected response from import service: Error: unable to get local issuer certificate

I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
0 votes
1 answer
395 views

Sitecore JSS next.js headless Experience Editor not working in html mode

I'm facing the issue that Experience Editor is loading with components, ribbon and all kind of stuff. Components are selectable but no interaction in ribbon is working whenever I would expect some ...
2 votes
1 answer
72 views

Prevent Sitecore from creating the sitename#lang cookie in jss/nextjs app

Is there a way to block Sitecore from creating the {website}#lang cookie? When Sitecore's Layout Service is used with a headless app (a next js app)? Will it be enough to add a processor in ...
0 votes
1 answer
60 views

Sitecore JSS nextjs | The requested document was not found [closed]

Sitecore jss nextjs sample app in connected mode. installation is done as per https://doc.sitecore.com/xp/en/developers/hd/200/sitecore-headless-development/walkthrough--creating-a-jss-next-js-...
3 votes
1 answer
127 views

Sitecore XM Cloud Redirect is not working on SXA sites with XM Cloud

We are trying to configure URL redirect rules using redirect map, but it is not working on edge. when we are trying to fetch rendering data from edge it is always giving us 200 Response code with ...
1 vote
2 answers
71 views

ClientError: GraphQL.ExecutionError: Error trying to resolve rendered

Error while jss start:connected in sitecore jss next js sample app

1
2 3 4 5
13