Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
0 votes
1 answer
163 views

Multilanguage not working for headless | Sitecore NextJs URLs throw 404 for non English locale

URLs throw 404 when trying with another language, it's only working for en. I can see the JSON response for it when accessing the API. I have added language in CMS, setup the page for it and also ...
0 votes
1 answer
120 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
175 views

Next.js Multisite Add-on not working in local containers because of CORS issues

Wondering, has anyone at all managed to make Next.js Multisite add-on work well? I spent lots of time trying to overcome a CORS issue, which I don't know how to solve. There is a troubleshooting guide,...
0 votes
2 answers
116 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 ...
0 votes
2 answers
87 views

Can I Get any Item in specific language

I am working on implementing tagging on the website, where we require English values for certain fields while the site is in Arabic. We retrieve items through GraphQL. For some components, we have ...
0 votes
0 answers
21 views

Unable to build NextJS SSG App [closed]

When executing command npm run build in local I am getting Error: Collecting page data for [object Object] is still timing out after 2 attempts NextJS App is SSG any suggestions how to fix it ?.
1 vote
2 answers
285 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 ...
1 vote
1 answer
900 views

Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80

I am getting following error Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80 "while running this command " jss deploy app --includeContent --includeDictionary" ...
1 vote
0 answers
30 views

Module Tab is missing while creating Headless Site

I am creating a Headless site using below Sitecore version on my local machine. While creating the new headless site, I don't see Module tab in the popup. Sitecore 10.2.0 rev. 006766 (WDP XP0 ...
3 votes
2 answers
82 views

deploying next.js JSS app to sitecore

I have installed sitecore 10.0.3 on premise on dev server (remote desktop) and created next.js Jss app and connected the app with sitecore, now i have the app running and i can access the site from ...
1 vote
1 answer
44 views

Can I use ES Modules to build JSS applications

There are two module systems used for modern JS applications - old CommonJS and ES Modules (https://nodejs.org/api/packages.html#determining-module-system). And there are different modern packaging ...
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 ...
1 vote
1 answer
58 views

Getting error in layout.tsx file while setting up sitecore headless - TypeError: Cannot read properties of undefined (reading 'value')

Getting Error TypeError: Cannot read properties of undefined (reading 'value') while Setting Up Sitecore Headless in Sitecore 10.3 Please find the attached screenshot for reference I have diligently ...
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
57 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
2 answers
62 views

Issue with Sitecore JavaScriptServices ViewEngine Rendering

We encountered the following exception when attempting to browse the page in Sitecore JSS 10.3 through experience editor. All the files have been deployed under wwwroot\sc103.sc\dist\. We have tried ...
0 votes
1 answer
53 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 ...
0 votes
2 answers
40 views

sitecoreContext from ComponentWithContextProps is undefined

Context item field data in sitecoreContext from ComponentWithContextProps, is undefined all the time. ComponentWithContextProps is import of lib/component-props. Below are the screen shot of code, lib,...
1 vote
0 answers
48 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
152 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
81 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
34 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
37 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
1 answer
36 views

I'm unable to install headless CMS in sitecore 10.2 Docker Setup?

Encountering error: invalid from flag value headless_image: pull access denied for headless_image, repository does not exist or may require 'docker login': denied: requested access to the resource is ...
1 vote
1 answer
76 views

Redirect middleware not working

I wanted to try out the redirects module from SXA though something is quite not right. I created the redirect maps on the Site and republished the Site item as I’ve read in an existing question here ...
1 vote
2 answers
50 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
86 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
942 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
41 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
37 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
477 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
56 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
312 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
250 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
438 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
3k 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
60 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
371 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
201 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
123 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
135 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
722 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
324 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
317 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
101 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
36 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
167 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
63 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 ...

1
2 3 4 5
14