Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
1 vote
1 answer
135 views

Using vhost for JSS Multi-site setup on Azure App Service

I have a headless proxy multisite setup locally using JSS. I have two sites, SiteA and SiteB. I'm using vhost in node to serve as a middleware to resolve the hostname. http://expressjs.com/en/...
1 vote
1 answer
73 views

Deploying a JSS App Next JS to Scaled Sitecore environment (Production)

Hello Everybody I am working on a Next Js App over Sitecore it is working fine locally the app is created and working on Localhost but now I need deploy the App to production I have a Sitecore 10.3 ...
1 vote
0 answers
83 views

How do I get an item's language versions in GraphQL?

I'm using a GraphQL query that at its most basic looks like this: { item(path: "/sitecore/content/Home", language: "en") { name languages { name version ...
2 votes
1 answer
167 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
1 answer
122 views

Issue with running deploy command on Sitecore 10.2 JSS NextJS SXA

When I am initiating Sitecore JSS app with Nextjs, npx create-sitecore-jss --templates nextjs,nextjs-sxa --appName sitecore-nextjs-app --hostName s102demo1cm.dev.local --fetchWith GraphQL ./Sitecore ...
1 vote
0 answers
45 views

Deploying next js to production (on VM)

Is there any guidelines from Sitecore that shows how I can deploy my next app to a VM. The documentation website is talking about Vercel mainly, but what if I want to deploy it to a windows VM, assume ...
2 votes
1 answer
45 views

React component import is not resolved in Sitecore deployment environment

I am using next/jss starter kit and trying to add a React component inside Sitecore navbar (src/sxastarter/src/components/Navigation.tsx) and push it to Sitecore. The component I am trying to add is ...
1 vote
2 answers
62 views

How to provide a select list in the web application

I have a headless rendering based on this template: Heading: Single-line Text Description: Single-Line Text Background: Droplist (source: is an enum folder) I have a sample item: The droplist works ...
0 votes
1 answer
112 views

Pass own params in Rest Layout Service using Custom Data Fetcher

I was wondering if there's anyway to override the payload in the Rest Layout Service using my own custom params. I'm upgrading the Frontend JSS, so I need to make sure the there's no other API Changes ...
2 votes
1 answer
974 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={...
1 vote
0 answers
46 views

Sitecore XP 10.3.1, Sitecore Headless Services Server XP 21.0.587, International phone number Form field (intlTelInput)

I want to create a International phone number field that allows user to select the country code and then enter the number. Country selection is a dropdown with Country flag, country code, and an arrow ...
2 votes
1 answer
44 views

What's the best way to register components into the component builder from other directories?

I'm working on a monorepo solution which would have a set of Shared components one level above the site folder. I'm looking at updating scripts\generate-component-builder\plugins\components.ts per the ...
1 vote
1 answer
505 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 ...
2 votes
1 answer
65 views

manifest tagged by "latest" is not found

I am trying to run JSS with Sitecore xp1 in Docker. I am referencing the following URLs: https://doc.sitecore.com/xp/en/developers/102/developer-tools/add-sitecore-modules.html https://doc.sitecore....
1 vote
2 answers
330 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 ...
1 vote
1 answer
279 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/...
0 votes
1 answer
486 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 ...
2 votes
2 answers
4k views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

I am using Sitecore 9.1. I can able to run my sample angular application in connected mode using the command ">jss start:connected". But i cant able to open my site in local integrated mode , even in ...
1 vote
1 answer
82 views

Implementing Google Recaptcha on Sitecore Forms 10.3 Headless with React JS

could someone please explain or share the documentation or articles for implementing Google Recaptcha on Sitecore Forms 10.3 Headless with React JS? I haven't found any useful articles related to it. ...
1 vote
1 answer
432 views

Getting error "Ensure that there is only one instance of "graphql" in the node_modules directory"

I am trying to create a Sitecore JSS app for Sitecore 10.3 with nextjs template. I keep getting the error below when I try Jss start command. I am trying to run this in disconnected mode with REST. My ...
1 vote
1 answer
1k 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. > [email protected] ...
2 votes
1 answer
204 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 ...
0 votes
1 answer
163 views

Server side rendering engine application URL

Is there anyways I can get the ID for default internal editing host value? If i'm not wrong then when we create a project using the XM Cloud Deploy App, the project is set up with a default internal ...
1 vote
1 answer
150 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
749 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
349 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
340 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
105 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.
2 votes
1 answer
39 views

Sitecore react jss form POST call expose sc_apikey on url

Does someone know why Sitecore expose your API_KEY with jss forms. Create a simple form, open chrome dev tools (network tab) and click submit. You will see something like this: http://localhost:3000/...
0 votes
2 answers
173 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
1k 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-...
2 votes
1 answer
80 views

How to authenticate users with on JSS application?

I am developing a JSS application (NextJS), and this app is only accessible to the internal staffs. And everyone must authenticate via Azure AD authentication to access the content. Typically for ...
0 votes
1 answer
2k 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
747 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 ...
1 vote
1 answer
269 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
1 answer
559 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 ...
1 vote
2 answers
131 views

How to remove Server HTTP Header from Sitecore GraphQL API response?

The Sitecore GraphQL API endpoint is returning Server HTTP Header in its response which has information on the hosting web server (IIS). This is a security issue as it gives the attacker information ...
3 votes
3 answers
519 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 ...
0 votes
1 answer
53 views

Facing this error in experience editor

jss start:connected command is also not working, I used following comands jss setup jss deploy config jss deploy app -c -d { "sitecore": { "instancePath": "C:\\inetpub\\...
0 votes
1 answer
180 views

Sitecore JSS getting build error VUE.JS Sample app

I am getting following error when trying to run jss build on sample Vue JS app. https://github.com/browserslist/browserslist#browsers-data-updating ERROR Error: No module factory available for ...
0 votes
1 answer
103 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 ...
0 votes
1 answer
875 views

403 Forbidden when trying to create a JSS app

I'm facing this issue when trying to create my first JSS react app. That's weird because I have other members on my team who are able to make it work even if we have pretty much the same setup (or at ...
1 vote
1 answer
100 views

Numerous type errors when enabling strictTemplates in Angular 15

I would like to enable strictTemplates in angular but when I do I am getting some of the following type errors. By default most of our rendering variables are using ComponentRendering Type from JSS, ...
0 votes
1 answer
64 views

How and when to set JSS editing secret on Sitecore CM?

I'm building the JSS app from the dotnet nextjs template and it is working on my local with XP1 topology. However, I have difficulties deploying the app to our Sitecore installation which is deployed ...
1 vote
3 answers
1k views

Generate XML sitemap in Sitecore JSS

I am using Sitecore 10 and Angular JSS without SXA, I did not install it, so my question is how I can generate an XML sitemap to our site?
0 votes
3 answers
331 views

Unable to Fetch Dictionary Value in Sitecore NextJs App

I am creating a Sitecore Headless application using NextJs and trying to fetch the dictionary value but unable to do so. Below is the dictionary Item which I have created in Sitecore. And Below is ...
1 vote
1 answer
94 views

The images or media from CD returns http instead of https on Sitecore

I have setup Sitecore JSS project from Getting Started template and I am using XP1 topology with CD and CM on separate containers to simulate actual production environment. However my problem is the ...
2 votes
2 answers
255 views

NameValueList in JSS to field type

I'm building a GraphQL query to return back an item and its fields. One field is NameValueList - I can just return it as a string and cast it to an interface the layout service returns it like this: &...
2 votes
1 answer
544 views

Unable to fetch Image with server url in GraphQL

I am using Sitecore 10.2 in my local as headless and nextjs for frontend. I was trying experience editor, I was able to edit the components in experience editor. Now Images are not showing in Site ...
1 vote
0 answers
88 views

Rendering container fails to start: system cannot find the file specified

I am adding a rendering service/container to my solution. I see this error from the rendering container when running docker compose up: Error response from daemon: container ...

1
2
3 4 5
14