Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module and JSS CLI.
167
questions with no upvoted or accepted answers
7
votes
0
answers
569
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, ...
5
votes
1
answer
215
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 ...
4
votes
0
answers
131
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: [
{
...
3
votes
0
answers
41
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 ...
3
votes
3
answers
358
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 ...
3
votes
0
answers
232
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['...
3
votes
0
answers
71
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.
...
2
votes
1
answer
66
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 ...
2
votes
1
answer
46
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....
2
votes
1
answer
111
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
0
answers
254
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 ...
2
votes
1
answer
278
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 ...
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
0
answers
226
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 ...
2
votes
0
answers
318
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 & ...
2
votes
0
answers
209
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 ...
2
votes
0
answers
30
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 ...
2
votes
0
answers
123
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 ...
2
votes
0
answers
75
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/...
2
votes
0
answers
241
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 ...
2
votes
0
answers
279
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. ...
2
votes
0
answers
103
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....
2
votes
0
answers
66
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 ...
2
votes
0
answers
44
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 ...
2
votes
0
answers
211
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 ...
2
votes
0
answers
120
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 ...
2
votes
0
answers
223
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 ...
2
votes
0
answers
859
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 ...
2
votes
0
answers
401
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 ...
2
votes
0
answers
86
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 '...
2
votes
1
answer
377
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 ...
2
votes
1
answer
713
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\...
1
vote
1
answer
60
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 ...
1
vote
0
answers
49
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
vote
1
answer
42
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 ...
1
vote
4
answers
233
views
Error JSS Editing Secret
Finally, I configured a headless project on my xmcloud.localhost. An error exists when I try to access a page from my Headless local with Experience Manager.
Error: "Connection to your rendering ...
1
vote
0
answers
47
views
Separate Editing host for Sitecore Headless application in local docker setup
I am trying to create the separate Editing Host (Next.js) for container setup.
Sitecore version: 10.3 without SXA
Sitecore JSS Next.js SDK version: 21.2.4 without SXA Multi-site add-on
For this I ...
1
vote
1
answer
206
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
0
answers
69
views
XM Cloud GraphQL CORs preflight endpoint configuration Issue
XM Cloud GraphQL CORs preflight endpoint configuration Issue
I am trying to execute the GraphQL query from my application in localhost, but I am unable to get the results, although the query works on ...
1
vote
0
answers
57
views
Circular Inheritance after upgrade from Sitecore 9.3 to Sitecore 10.3
We have upgraded Sitecore 9.3 to Sitecore 10.3 version. But after upgrade we are getting the Circular templates error for multiple templates. We have verified each and every templates's fields, ...
1
vote
0
answers
133
views
Dynamic placeholder for Left and Right column in Sitecore JSS NextJs Rendering Component
I have SXA-JSS Next.JS based component for Sitecore 10.3.0, I want to have 2 placeholders with the different key, but with a dynamic suffix. e.g. I need 2 equal columns.
In CMS, I Created two ...
1
vote
1
answer
41
views
Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: An item with the same key has already been added
I am using Sitecore 10.2. I am able to run my sample nextjs application in connected mode using the command in VS Code terminal jss start:connected.
But I am not able to open my application in local ...
1
vote
0
answers
54
views
IMPORT ERROR(S) OCCURRED! Error de-serializing import data (Cannot cast Newtonsoft.Json.Linq.JObject to Newtonsoft.Json.Linq.JToken)
I have installed sitecore 10.0.1 version and sitecore jss version 15.0.1. While trying deploy the app by executing the jss command
"jss deploy app --includeContent --includeDictionary --...
1
vote
0
answers
111
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:
...
1
vote
1
answer
236
views
Sitecore JSS deploy throws unexpected response from import status service
I am running into an error while I deploy the JSS application using the command jss deploy app -c -d
Fresh vanilla Sitecore 10.2 XM
Sitecore Headless Rendering 20.0.2 on top of it
Node v18.16.0
npm ...
1
vote
2
answers
212
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
189
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/...
1
vote
1
answer
122
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 ...
1
vote
0
answers
107
views
JSS Sitecore Form Button Submission Failed With Anti-Forgery Cookie Issue
JSS NextJS Form Component
import { Form } from '@sitecore-jss/sitecore-jss-react-forms';
import React from 'react';
import { NextRouter, withRouter } from 'next/router';
import { sitecoreApiKey } from ...
1
vote
1
answer
183
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=...