Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

What is the config for npm run start:rendering-host

The sitecore documentation talks about running npm run start:rendering-host but this is not the package.json of the sample application. What should this command be? walkthrough--configuring-the-http-...
Austin Born's user avatar
0 votes
0 answers
93 views

How to run JSS Angular App using SSR

Hi Im currently working on a JSS Angular application and have been tasked to deploy this within a docker container. After reviewing the Sitecore documentation it looks like this app will use SSR(...
Austin Born's user avatar
0 votes
2 answers
149 views

Is Visitoridentification relevant in Sitecore Jss based Implementation?

Visitoridentification is important in Asp.Net MVC-based implementation, but I'm curious if Sitecore Jss-based implementations also require this to be enabled. I observe that the Sitecore CD server is ...
Sivalingaamorthy's user avatar
0 votes
1 answer
103 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 ...
Rameshkumar's user avatar
0 votes
1 answer
404 views

Error while installing Sitecore in docker [duplicate]

I am trying to setup Sitecore 10.3 with docker containers. While trying to run the .\up.ps1, I am facing below error with the certificate while building the containers: Unable to load the service ...
Anonymous's user avatar
0 votes
0 answers
24 views

Setting up a development environment with the Sitecore 10.3 Containers template for Next.js [duplicate]

I tried to setup development environment with Sitecore 10.3 Container temmplate Next.js. I follow this url : https://doc.sitecore.com/xp/en/developers/hd/210/sitecore-headless-development/walkthrough--...
Vlad Iobagiu's user avatar
  • 18.2k
0 votes
0 answers
102 views

Get Custom Multiple Field Value with Custom Submit Action

I am trying to implemented custom multiple fields with Sitecore Forms using Sitecore JSS. The UI is working as expected. This is my Sitecore Form design And this is the result. The problem occurs ...
PTech  Code's user avatar
0 votes
2 answers
139 views

Can props.fields ever be null in a Rendering Component?

I'm creating custom types for components in TypeScript (with strict null checks enabled) and I want to confirm if it makes sense to be doing null checks on props.fields, eg.: if (!props.fields) { ...
Marcel Gruber's user avatar
0 votes
0 answers
32 views

How to setup/enable mutations in sitecore graphql [duplicate]

I noticed my GraphQL endpoint does not have mutation enabled out of the box. I don't know why. See screenshot I tried to look it up but I couldn't find any at the moment, so I thought I'd just ask ...
Carl Nierves's user avatar
0 votes
1 answer
659 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 ...
grg's user avatar
  • 1,811
0 votes
0 answers
7 views

Error when building container with headless aspnetcore template [duplicate]

Im trying to use the aspnetcore template. When I try to run the up.ps1 script, it completes but gets stuck at the end. So I went into Docker desktop and saw this error in one of the images: After ...
Boomer123's user avatar
0 votes
1 answer
91 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.
Mohd Kashif's user avatar
0 votes
1 answer
278 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 ...
Chet Cheeto's user avatar
0 votes
0 answers
474 views

ERROR: Duplicate "graphql" modules cannot be used at the same time when starting code-first NextJS JSS application

I'm trying to create a new code-first NextJS demo using the JSS initializer for experimental purposes only: However, running jss start always gives me this error: I believe this error is caused by ...
Thai Tran's user avatar
0 votes
0 answers
172 views

Get Updated and created date values in graph ql query using JSS react next js app

I am trying to fetch updated date of an item via graphql query using jss Sitecore app. I have done a bit of research and found out that I need to extend graphql schema in order to get updated date. ...
Adnan Raza's user avatar
0 votes
0 answers
318 views

How to filter results by value in multiselect field?

I have many blog pages that are of type BlogArticlePage, all of these pages can have many "tags" selected through a MultiList field. In the JSS GraphQL Schema it looks like this: type ...
mbla-sc's user avatar
0 votes
0 answers
79 views

How to Debug JSS Import Errors

I am trying to deploy a JSS app to a local containerized Sitecore Instance, but when I call jss deploy items -c -d, I am getting a 400 Bad Request error with no additional information. Is there a way ...
Markus's user avatar
  • 309
0 votes
1 answer
504 views

Sitecore JSS next.js headless Experience Editor not working in html mode

I'm facing the issue that Experience Editor is loading with components, ribbon and all kind of stuff. Components are selectable but no interaction in ribbon is working whenever I would expect some ...
aklein's user avatar
  • 201
0 votes
1 answer
176 views

Sitecore JSS getting build error VUE.JS Sample app

I am getting following error when trying to run jss build on sample Vue JS app. https://github.com/browserslist/browserslist#browsers-data-updating ERROR Error: No module factory available for ...
Arun Kumar's user avatar
0 votes
2 answers
462 views

How is Integrated mode configured for a Sitecore JSS React app?

We have a Sitecore JSS app that has been working for some time in both Disconnected and Connected mode, locally in Docker and hosted on Azure App Services. It runs in the CM environment, and on a Node ...
sussexrick's user avatar
0 votes
1 answer
467 views

Sitecore requests give a 404 in connected mode

I'm using Sitecore 10.1 with JSS 16.0.0. In connected mode when I visit a Sitecore path, it gives a 404 error. For example:- http://localhost:3000/sitecore/api/layout/render/jss?item=%2F&sc_lang=...
Jeroen Breuer's user avatar
0 votes
2 answers
144 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 ...
Luke's user avatar
  • 1
0 votes
1 answer
634 views

Error while installing Sitecore JSS CLI

I have installed Sitecore 10.2 on my pc and installed this Sitecore Headless Services Server XP 19.0.0 rev. 00508.zip for Sitecore JSS. I have installed the latest version of a node using this file ...
Erwin Paul's user avatar
0 votes
0 answers
2k views

error Cannot read properties of undefined (reading 'isServer')

I am setting up JSS (NextJS) application following https://miguelminoldo.fr/2021/10/18/deploying-sitecore-jss-next-vercel/ but when I run jss create sitecoreverceldemo nextjs I am getting the ...
Naeem Ashraf's user avatar
0 votes
1 answer
2k views

Sitecore JSS rendering host failed

I am getting below error after creating the JSS App in connected mode. Connection to your rendering host failed with a Not Found error. Ensure the POST endpoint at URL http://localhost:3000/api/...
Abhhy's user avatar
  • 1
0 votes
0 answers
67 views

JSS CLI commands with --config switch

I'm trying to use the JSS CLI to deploy content and components to my local CM instance running in Docker, but with a different config file. Normally I run jss deploy files or jss deploy app and it ...
Dan's user avatar
  • 171
0 votes
1 answer
40 views

Could not find file application skin file error in Sitecore Jss 10.1

For few users in Sitecore CM server while they are trying to access the content tree items, getting below attached error:
Gayathri Sriram's user avatar
0 votes
1 answer
830 views

How to customize sitecore layout service json response

How to customize Sitecore layout service json response completely by removing even Sitecore, context and route level and only return the custom data in the response? For one of my POCs, I have the ...
Abdul Lathif's user avatar
0 votes
0 answers
143 views

Reusing JSS Components in SXA site

I have setup a sample Angular JSS app, created a few ng components and deployed it to Sitecore instance which has a SXA site already present I am now looking at how I can re-use or integrate my new ...
Abhay Dhar's user avatar
  • 1,655
0 votes
0 answers
137 views

Abandon session in JSS Integrated mode

Sitecore : 9.1 Initial release + JSS 11.0 integrated mode We tried to abandon the session using the URL snippet /sitecore/api/jss/track/flush mentioned at https://jss.sitecore.com/docs/fundamentals/...
NutsAndBolts's user avatar
  • 1,310
0 votes
0 answers
242 views

Using Horizon with Sitecore JSS site

I have a website developed in Blazor server app based on Sitecore JSS layout ... the json of each page is pulled using /sitecore/api/layout/render/jss?item=/&sc_apikey=xxx and Sitecore really does ...
John's user avatar
  • 37
0 votes
1 answer
675 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 ...
shimaa elsayed's user avatar
0 votes
1 answer
91 views

Submit data from contact-us form and saving it to Sitecore using sitecore JSS - Angular App

I am using Sitecore 10 with JSS - Angular App, I have a contact-us form in page and I need to submit the data of form and save it to Sitecore tree. What is the best solution to do this?
shimaa elsayed's user avatar
0 votes
1 answer
322 views

A potentially dangerous Request.Path value was detected from the client (:) [closed]

I followed the steps on https://jss.sitecore.com/docs/client-frameworks/getting-started/app-deployment to get my local starter app connected to my local sitecore install. In the nextjs app it works ...
erwin_smit's user avatar
0 votes
1 answer
172 views

Unable to preview component variant

We're looking to set up an A/B test for a JSS component from the Experience Editor. We made a component variant that uses a different data source item. We are unable to preview the component variant. ...
EzraM's user avatar
  • 143
0 votes
0 answers
18 views

Using SXA Partials to insert Renderings hides Placeholder Add button from EE [duplicate]

Pretty new to SXA, currently using it on a project with JSS (so not using the built-in renderings or anything like that, but am using Page Designs and Page Partials). I'm not sure if this is known or ...
Jeeby's user avatar
  • 251
0 votes
0 answers
435 views

Guidance on storing data in Sitecore Context or Local/Session Storage

We are building a React app using Sitecore JSS and we want to store some data about the user. The data is either info we want to store while the user is logged in (e.g. cache the user profile ...
KingTwinkie's user avatar
0 votes
0 answers
280 views

Failed prop type: Invalid prop `errorComponent` supplied to `PlaceholderComponent`

I'm trying to improve error handling for my app, so I've create a very simple component ErrorComponet.jsx: import React from "react"; const ErrorComponent = (props) => { return (<...
devzero's user avatar
  • 439
0 votes
0 answers
188 views

Sitecore JSS Personalization simple display rule not working

We are using Sitecore 9.1 with JSS and have a fully functional site running using Angular -- all working great. Now, we would like to add personalization to our site. To do so as a simple starting ...
user411931's user avatar
0 votes
0 answers
230 views

Sitecore First Approach Can't see the component added to child placeholder

We are working on POC to test new page addition through SitecoreFirst workflow. Have added a sample template and JSON rendering to my Sitecore app from the content editor and created a route to host a ...
Rishi's user avatar
  • 51
0 votes
0 answers
19 views

Creating Layout service url for Sitecore Jss multisite application in azure [duplicate]

I am completely new to Sitecore Jss. i am trying to implement a multisite sitecore application using jss. I already have a jss site hosted in azure with layout service "https://abc.org/sitecore/...
Rashmi936's user avatar
0 votes
0 answers
29 views

Unable to import JSS app to Sitecore [duplicate]

I’m trying to deploy JSS App on Sitecore, all seems to be in order but when I run this command jss deploy app -c -d I am getting the following error Unexpected response from import service: Status ...
Saad Alam's user avatar
0 votes
0 answers
157 views

JSS Page load issue

I have one website which is in Sitecore 9.2 and JSS. This website already deployed on the QA environment but the issue is that when I load the website the first time it displays some text after that ...
Swati Gupta's user avatar
  • 2,810
0 votes
0 answers
116 views

HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP'

I'm getting HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP' for below piece of code and patch file. can anyone help on this please. Code: namespace ...
Erwin Paul's user avatar
0 votes
1 answer
1k views

Experience Editor error when adding element to placeholder in a JSS component that doesn't by default render its placeholder

I'm using sitecore JSS, I have a component with a placeholder and I am trying to add a child component into that placeholder. I'm getting an unhelpful popup error saying An error occurred and then in ...
Justin L.'s user avatar
  • 201
0 votes
0 answers
255 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
Fatema elsayed's user avatar
0 votes
0 answers
228 views

Why is jss app being server rendered when not in edit mode?

I was under the impression that when viewing a sitecore site locally it would render on the client if not being viewed in the experience editor. I'm trying to read/write from a cookie in one of my ...
Jonny B's user avatar
  • 111
0 votes
1 answer
832 views

403 Forbidden when trying to create a JSS app

I'm facing this issue when trying to create my first JSS react app. That's weird because I have other members on my team who are able to make it work even if we have pretty much the same setup (or at ...
Hugo Santos's user avatar
  • 2,281
0 votes
0 answers
117 views

How to make experience editor editable If List of data inside the map

I am retrieving the date from the service and I am mapping and displaying the details of what service gives in that what are the common text details which need to come from Sitecore it displays it's ...
Durga Prasad's user avatar
0 votes
1 answer
804 views

404 Error on Import Service

I've set up a blank Sitecore 9.1.1 XP instance and tried to get JSS up and running. I've installed the Sitecore JavaScript Services Server for Sitecore 9.1.1 XP package and 11.0.2 sitecore-jss-cli. I'...
Patrick Stysiak's user avatar