Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

140 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
444 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, ...
user avatar
4 votes
1 answer
84 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 ...
user avatar
3 votes
0 answers
113 views

Extend GraphQL schema for custom field

I'm working on a 10.2 solution with JSS & NextJS using the GraphQL (edge) endpoint. I already noticed this endpoint is sometimes quite different compared to others and now I would like to extend ...
user avatar
  • 19.2k
2 votes
0 answers
151 views

Sitecore JSS not working with Pinia/Vuex

I am having issues trying to integrated Pinia@2.0.14 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 ...
user avatar
2 votes
0 answers
101 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 & ...
user avatar
2 votes
0 answers
29 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 ...
user avatar
  • 4,881
2 votes
1 answer
87 views

10000ms elapsed without getting a service from the pool - JSS SSR default nodejs pool size - Integrated mode

Sitecore 9.3 + JSS. Under heavy load we see errors in log files: Exception Message Exception: System.TimeoutException Message: 10000ms elapsed without getting a service from the pool. Source: Sitecore....
user avatar
  • 858
2 votes
0 answers
70 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: [ { ...
user avatar
2 votes
0 answers
40 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. ...
user avatar
  • 1,108
2 votes
0 answers
179 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 ...
user avatar
2 votes
0 answers
169 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. ...
user avatar
  • 19
2 votes
0 answers
77 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....
user avatar
2 votes
0 answers
137 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 ...
user avatar
2 votes
0 answers
49 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 ...
user avatar
  • 73
2 votes
0 answers
590 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 ...
user avatar
2 votes
0 answers
217 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 ...
user avatar
  • 24.4k
2 votes
0 answers
79 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 '...
user avatar
2 votes
1 answer
332 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 ...
user avatar
2 votes
1 answer
452 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\...
user avatar
1 vote
0 answers
41 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: {...
user avatar
1 vote
1 answer
25 views

How to disable Mutation and Subscription in Sitecore GraphQL?

As per sitecore documentation, it states You can use custom authorization routines. Content endpoints can disable specific operations, so, for example, a mutation-free read-only content endpoint is ...
user avatar
1 vote
0 answers
44 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 ...
user avatar
  • 2,253
1 vote
1 answer
182 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-...
user avatar
  • 2,253
1 vote
0 answers
31 views

Integrate external live chat to Sitecore JSS

I am trying to integrate live chat in Sitecore JSS App. I am using Vue for coding. I need add some external Javascript for webchat to work and I want to configure the url's in Sitecore. My question is ...
user avatar
1 vote
0 answers
50 views

NextJS JSS on container missing Sitecore items

I'm following this walk through to setup NextJS JSS on container https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/walkthrough--setting-up-a-development-environment-with-...
user avatar
  • 2,253
1 vote
1 answer
84 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 ...
user avatar
  • 11
1 vote
0 answers
57 views

Sitecore 10 React JSS app to embed into non-Sitecore website

I did one POC with the help of this documentation for embedded JSS app. In this sample, Sitecore content which embedded app is consuming is in same Sitecore instance for Sitecore MVC site where we ...
user avatar
1 vote
0 answers
64 views

Debug Sitecore JSS React while SSR

How can I debug the JSS React application while using SSR, how to run the application with SSR in local machine with default npm commands?
user avatar
1 vote
1 answer
275 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 ...
user avatar
1 vote
1 answer
47 views

Asp.Net Model binding is not working for any node that is under "placeholders" using Sitecore ASP.NET Rendering SDK

I am following this https://doc.sitecore.com/developers/100/developer-tools/en/model-binding.html to bind my custom model for complex json response from my LayoutService API. The properties and fields ...
user avatar
1 vote
0 answers
121 views

Next.js Sample Site Installation Failed

I am trying to install Next.js Helix Example site: Everything looks good until items are serialized: Successfully built ec6606563cd4 Successfully tagged basic-company-nextjs-rendering:latest Starting ...
user avatar
  • 17.8k
1 vote
0 answers
109 views

Error deserializing import data when run "jss deploy app --includeContent"

I am using Sitecore 10 with JSS. When I tried to deploy my app to Sitecore I got the below error Sitecore has accepted import task JSSImport-atlp-informational-web-1:17:10 PM Job started: JSSImport-...
user avatar
1 vote
0 answers
53 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 ...
user avatar
1 vote
0 answers
181 views

JSS disconnected mode. Not able to add my first component into the “jss-main” place holder

Node JS version: v14.15.3, JSS Version: 15.0.1, Mode: Disconnected, Issue: Not able to add my first component into the “jss-main” place holder Following are the steps:- I have created a JSS ...
user avatar
1 vote
0 answers
129 views

Removing width and height attributes using JSS <Image/>

I was wondering whether there is a way to suppress rendering the width and height attributes when using the Image component from @sitecore-jss/sitecore-jss-react? Or under the hood, it basically uses ...
user avatar
  • 554
1 vote
0 answers
48 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/...
user avatar
1 vote
0 answers
551 views

How to host a JSS app on localhost at a specific port?

How can I configure Sitecore to host my JSS app at a specific port on localhost? e.g. if I navigate to localhost:44011, my site renders instead of the default Sitecore home page. Our React single-...
user avatar
1 vote
0 answers
141 views

Sitecore Analytics not working in Sitecore 9.2 JSS Application

I have enabled the following settings <setting name="Sitecore.JSS.TrackerServiceEnabled" value="true" /> <setting name="Xdb.Enabled" value="true" /> ...
user avatar
1 vote
0 answers
51 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 ...
user avatar
  • 87
1 vote
0 answers
42 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 ...
user avatar
1 vote
0 answers
60 views

Consume sitecore jss data from a separate sitecore instance

I have a Sitecore 9.1 MVC implementation where I want to consume the layout service response from a different Sitecore endpoint as an rendering. I have gone through the ways mentioned in Sitecore ...
user avatar
1 vote
0 answers
182 views

JSS Import media file returns error that Media does not exist [SC JSS+Angular]

I created a custom template to be used in my content items and one of it's field is an Image field. Also, created a content item under "data/content" using that template and supplying the correct ...
user avatar
1 vote
0 answers
1k views

Get current system Date and Time using GraphQL (SitecoreJSS)

Is there way to get the current system date and time using GraphQL (on GraphQL UI)? Working on a requirement that I need to compare the Sitecore item expiration date(custom field) with the current ...
user avatar
  • 57
1 vote
0 answers
72 views

Can't call login-page from JSS app

I tried to follow this guide to login from the JSS-app, but I get an error when posting: Access to XMLHttpRequest at 'https://myApp/sitecore/api/ssc/auth/login?sc_apikey={APIKey}' from origin 'http://...
user avatar
1 vote
0 answers
53 views

Preferred method of populating rendering data with route / context item instead of datasource item

I have component that has no explicit datasource because I want it to get its field values from the route item (which also happens to be the Sitecore context item). What would be the preferred method ...
user avatar
1 vote
0 answers
96 views

Enforce 443 port added in the generated media url

In my local environment, I have 2 sitecore JSS sites running and I need to make both available over http. one with port 80 and one with port 443. Example: http://abc.com http://abc.com:443 I ...
user avatar
  • 443
1 vote
2 answers
838 views

Read values from a drop down list

New to SitecoreJSS and Angular. Using Sitecore 9.0.1 and SitecoreJSS 11.0 (Angular) Created field - "HeadingBackgroundColor" type Droplist with data source pointing to different folder (I can ...
user avatar
  • 57
1 vote
2 answers
172 views

Making sitecorePath dynamic in app definition in Sitecore JSS

In Sitecore JSS, we are defining the app name, Sitecore path etc in the below section: <app name="GCP" sitecorePath="/sitecore/content/Home/JSS" appDatasourcesPath="/...
user avatar
1 vote
0 answers
127 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 ...
user avatar
  • 409
1 vote
0 answers
119 views

JSS Quick Start issue

When following the Quick Start tutorial with the commands below, I receive the attached error. Commands: npm install -g @sitecore-jss/sitecore-jss-cli jss create testtwo angular cd testtwo jss ...
user avatar