Skip to main content

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

179 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
629 views

Sitecore JSS integrated mode performance tuning

I hope you all are doing well and safe. Today I am here to ask a question specific to Sitecore JSS performance. Category - Sitecore JSS integrated mode, performance issue Sitecore Version - 9.2, ...
Sachin Dabas's user avatar
5 votes
1 answer
258 views

Sitecore JSS Federated Authentication in Production Environment (Headless mode)

We are building a DXP solution for our customers that requires Federated Authentication (via Azure AD). The solution is built on top of Sitecore JSS using Angular. The documentation related to ...
monkey.dsc's user avatar
4 votes
0 answers
141 views

Sitecore 10.1 jss 16 cannot correctly identify renderings in integrated mode

I have created jss project with react template, and I have added typescript support by installing some typescript libraries and adding to server.webpack.config.js next config: module: { rules: [ { ...
Антон Достоевский's user avatar
4 votes
0 answers
77 views

Rendering not getting picked from cache

Sitecore 9.3 - JSS I was working on the performance aspects of my application. And I checked the details on Stats.aspx The different JsonDatRenderer are for different Websites hosted on the instance. ...
NutsAndBolts's user avatar
  • 1,342
3 votes
0 answers
74 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
3 votes
0 answers
321 views

How to render link / text field as seamless button in Experience Editor

Imagine we have a link field ctaLink and a text field ctaText which are rendered as follows: <div className={styles['cta']}> <Link field={fields?.ctaLink as LinkField} className={styles['...
Marcel Gruber's user avatar
2 votes
0 answers
33 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
2 votes
1 answer
179 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
2 votes
1 answer
85 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....
NutsAndBolts's user avatar
  • 1,342
2 votes
0 answers
204 views

Error occurred during POST to remote rendering host: `http://localhost:5000

I am facing an issue on CD server on production, the website is working fine, but there are a lot of errors in the logs that says: "[JSS] Error occurred during POST to remote rendering host: ...
Jose's user avatar
  • 63
2 votes
1 answer
228 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....
sq___'s user avatar
  • 63
2 votes
0 answers
357 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 ...
Max's user avatar
  • 21
2 votes
1 answer
403 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 ...
Fillippe Prata's user avatar
2 votes
1 answer
214 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 ...
Shakti Patro's user avatar
2 votes
0 answers
261 views

JSS NextJS GraphQL.d.ts code gen best practice

Sitecore NextJS sample generates the *.d.ts file. The size of this file is pretty big. It uses graphql-let behind the scene. https://github.com/Sitecore/jss/tree/release/19.0.0/samples/nextjs/src Keen ...
Nil Pun's user avatar
  • 2,293
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-...
Nil Pun's user avatar
  • 2,293
2 votes
0 answers
241 views

Sitecore JSS not working with Pinia/Vuex

I am having issues trying to integrated [email protected] with Sitecore JSS App built from version 15.0.2. The sample app uses "vue": "~2.6.10". When I am running the app locally in ...
Arun Kumar's user avatar
2 votes
1 answer
1k 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={...
Anton's user avatar
  • 3,831
2 votes
0 answers
362 views

Sitecore 10 JSS docker setup

I am new to Sitecore JSS but have been doing development using Sitecore for 5 years. I am trying to set up JSS on my docker image. I have been successfully able to update the docker file for CM & ...
Arun Kumar's user avatar
2 votes
0 answers
272 views

"jss-main" was not found in the current rendering data while using node-headless-ssr-proxy with React

I am developing the JSS react template with node-headless-ssr-proxy for my company's solution, the react application have been migrated with Redux and dynamic routes, it can run and work normally in ...
Denis Lee's user avatar
2 votes
0 answers
32 views

How to make a component support a datasource item as well as being on a partial design [VueJS]

I'd like to make a component reusable whether it is a standard component with a datasource item specified, or on a partial design with no datasource and so it should fall back to using the routeData ...
Mark Gibbons's user avatar
  • 5,642
2 votes
0 answers
137 views

Sitecore Virtual login and accessing userProfile.context during layout service execution

we are working on custom personlization rules with user data available outside sitecore. App is developed in jss in ssr mode. With sitecore login setting up virtual user context when user logged in to ...
Akanksha's user avatar
2 votes
0 answers
85 views

Is there a change in GraphQL Schema between JSS version 11 and 14?

I am currently using sitecore 9.0.2 and have installed JSS to query the data using graphQL queries. I use below features of JSS: Querying data using http://sitecore.local/sitecore/api/graph/items/...
Ajit Singh's user avatar
2 votes
1 answer
266 views

Personalization on Layout Service not working when calling from JSS App

My Sitecore CD website in IIS is http://cd.my-website.com with a role as ContentDelivery. This site contains Sitecore and custom API code in Headless mode. The React code for the JSS app is on a ...
Maulik Darji's user avatar
2 votes
0 answers
300 views

A rendering error occurred: Cannot read property 'fields' of undefined

Trying to add RouteType item (as provided in samples on creating a new JSS app). Once I add in experience editor, it appears fine like below But as soon as I click save, I got below error message. ...
Amit's user avatar
  • 19
2 votes
0 answers
111 views

Running jss cli commands from c# class

Im trying to run jss cli commands (Windows Powershell) from my C# Class. I`m creating the commands dynamically, but i noticed that jss commands are not running. PowerShell ps = PowerShell....
Fernando Feks's user avatar
2 votes
0 answers
70 views

How to set a Datasource explicitly in yml file and change it when I go for personalization?

I'm using Jss react. I want to pass a datasource to a component which is coming from a different location (not from component itself or sitecore context). I want to use personalization so the ...
Kanchan's user avatar
  • 107
2 votes
0 answers
48 views

Can I create a native android app by retrieving data from Sitecore?

Current situation I have Sitecore 9.3. My Sitecore runs locally inside a vm. I've created a jss website and deployed it to sitecore following the official guide. What i want I want to create an ...
Zayed Ahmed's user avatar
2 votes
0 answers
228 views

Not able to edit text inline in button tags

I am using Sitecore 9.3 with JSS. I have created few components that have buttons. The button labels are editable in sitecore. The issue is when I edit those button labels inline, e.g, I need to add ...
NewbieHere's user avatar
2 votes
0 answers
144 views

React owl.carousel $ not defined in preview but working in edit mode

I'm having an error right now with owl-carousel. I have it imported in some of my components in react jss and it is throwing error when I'm on Preview in Experience Editor but working perfectly when ...
Jay's user avatar
  • 73
2 votes
0 answers
256 views

Create new content missing when adding a component in experience editor

I'm using Sitecore 9.3 with JSS 13. When I try to use the add here and select one of my components I get the Select the associated Content dialog box. This box is missing the create new content ...
devzero's user avatar
  • 439
2 votes
0 answers
912 views

jss build does not change hash on files when outputHashing is set to all

We are now going to production and are noticing the jss build and jss deploy files are not updating the hash on the file names when the content changes. This is causing cache busting to not work and ...
Chris Bartlett's user avatar
2 votes
0 answers
488 views

How do I get my SSR proxy to site resolve the LayoutService for my JSS/SXA Site?

We're on Sitecore 9.2, SXA 1.9, JSS 12. previously On 9.1, we had the following setup: JSS App sitting in /sitecore/content/myapp A site definition that mapped a hostName to our /myapp A JSS ...
Mark Cassidy's user avatar
  • 25.3k
2 votes
0 answers
87 views

Error when personalizing JSS renderings

I'm getting the following error when I try to personalize a JSS component that was deployed into a JSS tenant on 9.2: > Cannot read property 'image' of undefined TypeError: Cannot read property '...
Andy Uzick's user avatar
2 votes
1 answer
403 views

Tracking Page Events and Goals Does`t Work Correctly

I am working on a mobile application (Sitecore 9.1, JSS React Native) with a couple of pages. A page event is assigned to each of the mobile application pages. I have enabled indexing anonymous ...
Georgi Bilyukov's user avatar
2 votes
1 answer
785 views

Unexpected response from import service: Invalid Authentication

I'm trying to perform the command to deploy my application to a remote CM server jss deploy app --includeContent --includeDictionary but I receive the following error Sending package sitecore\package\...
KingTwinkie's user avatar
1 vote
1 answer
42 views

Issue with Omitting bucket folders from URL

We're experiencing an issue with the Link Manager Configuration for Bucket URLs after updating our Sitecore JSS to version 21.7.1. Previously, our URLs were structured like this: <mywebsite>/...
Yaswanth's user avatar
1 vote
1 answer
31 views

Headless - Can child items have its own style parameters?

I have a rendering with a data source item, and under it are child items; both of which are being retrieved via GraphQL. One of our requirements is for these child items to be styled differently and ...
chrono.lala's user avatar
1 vote
0 answers
37 views

GraphQL Search Query Operation Error: INVALID_OPERATION

Platform Context Sitecore 10.3.1 XP Headless Services 21.0.583 GraphQL Endpoint: /sitecore/api/graph/edge Problem Statement I'm using the GraphQL Edge endpoint's search query operation to retrieve a ...
Chet Cheeto's user avatar
1 vote
0 answers
25 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
1 vote
0 answers
73 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
61 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
1 vote
1 answer
49 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
1 vote
2 answers
122 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
1 vote
0 answers
65 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
1 vote
1 answer
76 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
1 answer
86 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
1 vote
0 answers
53 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
343 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
  • 453
1 vote
0 answers
116 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