Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
0 votes
2 answers
31 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
  • 753
0 votes
0 answers
32 views

"Component GraphQL Query" field is ignored in Experience Editor

I installed the Sitecore 10.4 with Headless SXA and I noticed a strange behavior. On the components which has a "Component GraphQL Query" this field is ignored. On a 10.3 solution Link List ...
Vlad Iobagiu's user avatar
  • 18.6k
1 vote
0 answers
23 views

Unable to Send FileUploadUrl in Email While using out of the box fileupload control in sitecore forms(sitecore 10.3.1)

I am using out of the box File Upload Control. While exporting the form data I receive all the fields with a file upload URL which will download the file. I am trying to send these details over email. ...
sriharsha kathri's user avatar
2 votes
0 answers
27 views

How to split JS bundles by page

On our JSS/Next.js site, we are running into an issue issue with poor PageSpeed performance scores, which are mostly attributable to large JS bundles. They're so large because we have one large main....
Marcel Gruber's user avatar
0 votes
1 answer
25 views

The new fields that added to template not appear on GraphQl schema on CD server

I am using Sitecore 9.3 with JSS, I faced issue that when i add new field on template and try to retrieve it using GraphQl Query , it is coming on CM, but gives me error on CD "message": &...
shimaa elsayed's user avatar
0 votes
2 answers
79 views

Rendering returns null with hardcoded path but works fine on the playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react) I am trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering). ...
Sun's user avatar
  • 89
0 votes
1 answer
45 views

Sitecore + next.js 301 redirects

Is there a way to handle (receive in the middleware for example) 301/302 status code from Sitecore server returned to next.js as a response for Layout service call? I used to use custom Node based ...
Lukasz123123's user avatar
1 vote
0 answers
67 views

Trouble Viewing File Upload Data in Excel Export with Custom Sitecore Form Element

I have created a custom Form Element in Sitecore form named "File Upload Email". There are two validators File Size validator Content Type Validator. According to my current code,...
Avneesh Kumar's user avatar
1 vote
2 answers
50 views

Not getting dictionary items/values for non en languages from web db

We are using Sitecore Headless. We are not getting dictionary values for non en languages from web db which is used for preview site. We tried to get the dictionary values using Graph QL Query. We ...
Dheeraj p's user avatar
  • 699
0 votes
1 answer
50 views

How to create a composite container in Sitecore XM Cloud / Next Js

In MVC, composite container like Tabs component has defined layout on each tab item and it processes on partial pages. In XM Cloud / Headless solution, I am able to create a separate layout on my tab ...
Hanz Kristopher Enriquez's user avatar
0 votes
0 answers
25 views

Emulator proxy port 3042 not working in disconnected mode using sitecore JSS CLI

I have installed the latest JSS CLI V21.7.0, after the 'jss start' command the Sitecore contents are displayed using the port 'http://localhost:3000'. But I want to create and configure scjssconfig....
Priyadarshini's user avatar
0 votes
2 answers
49 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
2 answers
61 views

Sitecore XM Cloud Language Fallback Works in Experience Editor but Not in Headless Application

I configured the Arabic language version at the site level and selected the English as the fallback language. Then, enabled the item language fallbackand language fallback. After that,created the ...
Suresh R's user avatar
  • 349
0 votes
1 answer
56 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
1 vote
1 answer
44 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 ...
user14194's user avatar
2 votes
2 answers
105 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 ...
NIKITA VASHISHT's user avatar
0 votes
1 answer
68 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
113 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 ...
George Chang's user avatar
  • 1,225
1 vote
2 answers
86 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 ...
Abdul Lathif's user avatar
0 votes
2 answers
50 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,...
Akash Savalagi's user avatar
1 vote
0 answers
51 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 ...
Jose's user avatar
  • 63
2 votes
1 answer
47 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 ...
Lahiru Lanka Rathnayaka's user avatar
1 vote
1 answer
48 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 ...
Bharath's user avatar
  • 11
1 vote
2 answers
77 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 ...
Bridgette Ryan's user avatar
2 votes
1 answer
46 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 ...
Mark Gibbons's user avatar
  • 5,602
0 votes
2 answers
104 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 ...
Muddassir Pasta's user avatar
1 vote
1 answer
109 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. ...
Abdul Lathif's user avatar
1 vote
1 answer
75 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 ...
Andrew Hany's user avatar
2 votes
1 answer
145 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 ...
Jagmeet Kaur's user avatar
2 votes
1 answer
40 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/...
jgatjens's user avatar
  • 121
2 votes
1 answer
90 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 ...
Faizal Sidek's user avatar
3 votes
2 answers
112 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 ...
shimaa elsayed's user avatar
1 vote
0 answers
50 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 ...
Parshant's user avatar
1 vote
1 answer
153 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 ...
Lala's user avatar
  • 397
0 votes
1 answer
208 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 ...
rayray's user avatar
  • 81
0 votes
1 answer
67 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 ...
Faizal Sidek's user avatar
1 vote
1 answer
242 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,...
Martin Miles's user avatar
1 vote
1 answer
103 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 ...
Faizal Sidek's user avatar
1 vote
1 answer
250 views

How to Handle 500 error Page in Sitecore Headless

I have created a custom 500.tsx page under the pages folder. But still, I am unable to get my 500 page working, instead, it shows the default error message. I have tried deleting my custom 500 pages ...
Manoj's user avatar
  • 331
1 vote
1 answer
106 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, ...
Judson Terrell's user avatar
3 votes
2 answers
167 views

RSS Feeds in NextJS Application

We've got a Sitecore headless project using NextJS. I've setup an rss feed using the OOTB Sitecore RSS functionality and it seems to be generating the correct xml when I view it through EE or preview. ...
Paul Schofield's user avatar
1 vote
0 answers
94 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 ...
Marcel Gruber's user avatar
2 votes
1 answer
150 views

Sitecore JSS Rendering issue on server bundle with experience editor

I'm having an issue with Sitecore JSS, where I'm upgrading from Vue 2 to Vue 3. After clicking on the specific form builder, this is the error that I receive: I can't seem to find the token it's ...
Pongramer's user avatar
0 votes
0 answers
45 views

hostname could not be parsed error when hitting custom MapHttpRoute

I am running Sitecore (10.2)/SXA backend in Docker. I am running NextJS directly on my host machine via npm run start:connected. On upstream environments, when I hit /export/doc?id=xxxxxxx, a file is ...
Marcel Gruber's user avatar
0 votes
1 answer
255 views

POSTing to localhost:3000/api/editing/render results in error "Unable to extract editing data from request"

I am doing some troubleshooting with my Sitecore(10.2.1)/NextJS(12.3.1)/JSS(20.0.3)/Docker setup. I am running my backend in Docker and my front end via npm on my host machine. I am POSTing to http://...
Marcel Gruber's user avatar
3 votes
0 answers
70 views

Monorepo(turborepo) template with sitecore-jss

Since Sitecore and Vercel announced partnership, I'm curious is there any plans for the official template for sitecore-jss SDK with Vercel's turborepo support? Or at least some guidance how to do it ...
ogojack's user avatar
  • 31
1 vote
1 answer
82 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
39 views

Headless (NextJS) Component not working when added to Sitecore XM cloud Page Designs [duplicate]

We are facing issue with the few our Headless component created in NextJS for Sitecore XM cloud implementation where nested component is created which ultimately render some code like below. ...
Nikhil Kulkarni's user avatar
0 votes
2 answers
402 views

How to customize Sitecore's Layout service api url?

The out of the box Sitecore layout service api seems to follow the format /sitecore/api/layout/render/<app>. If I wanted to use a url of the like of /api/layout-service, is it possible to ...
Durga Bose's user avatar
0 votes
1 answer
78 views

Can Sitecore 9.1 with JSS use VueJS 3

We have a Sitecore 9.1 site which uses JSS 11.0.2 - the supported version for 9.1. The node module @sitecore-jss/sitecore-jss-vue (currently also 11.0.2) mentions in its devDependencies section "...
Matthew Dresser's user avatar

1
2 3 4 5
14