Skip to main content

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
3 votes
0 answers
71 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
86 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
40 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
453 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
85 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
0 votes
0 answers
15 views

Set toUrlEncodedFormData in submitForm jss sitecore forms

I'm trying to set the content type request of the formdata but it doesn't seem to work. async onFormSubmit(e) { e.preventDefault(); try { .... const formData = ...
Bryan Ribo's user avatar
2 votes
2 answers
312 views

NameValueList in JSS to field type

I'm building a GraphQL query to return back an item and its fields. One field is NameValueList - I can just return it as a string and cast it to an interface the layout service returns it like this: &...
nologo's user avatar
  • 157
0 votes
0 answers
76 views

Headless Site is not getting created properly

I am creating a Headless Site inside Headless Tenant and its creating. However, I cant see few thing related to Headless site. It neither shows Settings Section in Site Grouping nor Rendering Hosts ...
Rashmi Ranjan's user avatar
1 vote
1 answer
126 views

An invalid request was sent to the Sitecore layout service

I have a Sitecore 10.3 XP installation and a Visual Studio solution with Helix, where we are implementing components. My local Sitecore CM installation is running perfectly fine. However, when I am ...
Sankar's user avatar
  • 13
1 vote
4 answers
755 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 ...
Z3RaK's user avatar
  • 45
2 votes
1 answer
357 views

Self-hosting nextjs [closed]

I couldn't find any information online how this can be done with sitecore. All documentation talk about hosting it on third-party providers such as Vercel or Netfliy. But it says next js can be hosted ...
Jose's user avatar
  • 63
1 vote
0 answers
91 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 ...
Amit Kumar's user avatar
0 votes
0 answers
63 views

Sitecore JSS support for http 2 and 3?

Been working with Sitecore for a while now, JSS not quite as long, and Headless just recently. One thing I noticed the other day is that it appears all traffic coming from the Node front ends is being ...
mezmo's user avatar
  • 103
0 votes
0 answers
21 views

SiteCore headless development material [duplicate]

I am learning SiteCore headless development but I don't know what is the best source for headless
Doaa Abdallah's user avatar
1 vote
3 answers
424 views

Unable to Fetch Dictionary Value in Sitecore NextJs App

I am creating a Sitecore Headless application using NextJs and trying to fetch the dictionary value but unable to do so. Below is the dictionary Item which I have created in Sitecore. And Below is ...
Vishal Khera's user avatar
0 votes
0 answers
94 views

Sitecore 10.3 JSS 21.0.1 Next.js - Unable to register fields for nested props in manifest definition

I am new to the Sitecore. I have created the Next.js application in disconnected mode. I am trying to register below props in component definition file. fields: { NewsCards: { PreviewImage: ...
pvn sreedhar's user avatar
1 vote
1 answer
136 views

Pass own params in Rest Layout Service using Custom Data Fetcher

I was wondering if there's anyway to override the payload in the Rest Layout Service using my own custom params. I'm upgrading the Frontend JSS, so I need to make sure the there's no other API Changes ...
Bryan Ribo's user avatar
1 vote
1 answer
238 views

Need Help with VueJS Environment Variables on Vercel: How to Set Up for a JSS VueJS App? [closed]

I've successfully deployed my JSS VueJS app on Vercel, but it's not working as expected. I suspect the issue lies in the absence of environment variables, which I know are essential. Unlike the ...
Fabio Carvalho's user avatar
1 vote
1 answer
210 views

JSS deploy config to XM Cloud failed

I'm using Sitecore XM Cloud environment, and I setting up my next.js app to connect to Sitecore editors. I'm currently following this article. After setting up the configuration file and run jss ...
WenHao's user avatar
  • 213
2 votes
2 answers
80 views

Disable dictionary service call in get starter JSS/react template

I am using the Getting Started template, and I can see the dictionary call is initiated by default. How to disable this call?
LAL SASTRI's user avatar
2 votes
1 answer
207 views

Sitecore RenderingHost pointing to AzureFrontDoor is serving static files like CSS, JSS slowly and sometimes it gives ERR_HTTP2_PROTOCOL_ERROR

We are using Sitecore version 10.3.0 with JSS and server-side rendering using a Node.js headless proxy. All of our resources are hosted in Azure. Our Azure Front Door (aaaa.afd.net) is pointed to the ...
Andi AR's user avatar
  • 763
1 vote
1 answer
526 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 ...
Padmaja's user avatar
  • 11
1 vote
1 answer
428 views

Sitecore CMS gets slow and unusable when opening up grapgql UI [duplicate]

I have an existing Sitecore 10.3 instance running on my local with SXA. The requirement for me is to use GraphQL to query data from my existing SXA site. In order to do that, I installed a headless ...
Ashan's user avatar
  • 63
0 votes
0 answers
25 views

Persistent handling of request.credentials across page loads

I am using Sitecore 10.3 with SXA and Headless packages installed. I also have GraphQL installed. I am trying mutation after enabling the /items/master endpoint. But every time I have to change the ...
Harsh Mithapara's user avatar
0 votes
0 answers
42 views

Dynamic Screens in mobile APP using Sitecore CMS

Is it possible to control mobile screens/layout using Sitecore CMS? I have a requirement to modify the mobile screen based on data from Sitecore JSS. Using a configuration is also acceptable. Is it ...
Harikrishnan N's user avatar
1 vote
2 answers
737 views

GraphQL.ExecutionError: Schema is not configured for mutations

I am using Sitecore 10.3 SXA Headless and using NextJS Page Router for my Front-end. Basically, I want to create an item by using graphQL mutation method. I have followed this stackexchange issue and ...
hrupapara's user avatar
0 votes
1 answer
112 views

Excessive next builds and deploys (triggered by publish webhooks) for SSG

The Sitecore docs on deploying JSS Next.JS sites to Vercel state that you must trigger a next build and site deployment via webhook on publish in order to pre-render the site with static site ...
Marcel Gruber's user avatar
1 vote
0 answers
234 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 ...
Manoj's user avatar
  • 361
1 vote
0 answers
88 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, ...
Gulam Ali's user avatar
2 votes
1 answer
128 views

How can I secure the Experience Edge content delivery token on my Next.js/JSS app?

I am using Sitecore Experience Edge and Next.js with JSS. My site requires a section that is secured behind a login, which I know should be handled by the head application and that we should not ...
Richard Seal's user avatar
  • 20.5k
1 vote
2 answers
173 views

Sitecore rendering contents resolver - need content from both context item and datasource item

We are working on Sitecore 10.3 Headless. For one of the components we are developing, we need the title field from the context item and rest of the content from Datasource item. In this case if we ...
Dheeraj p's user avatar
  • 709
1 vote
2 answers
629 views

Invalid graphql endpoint, Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set

I am a newbie here. I was editing the .env file for adding the graphQLEndpoints. But in between something broke and I got this error. This is the scjssconfig.json file { "sitecore": { ...
hrupapara's user avatar
0 votes
0 answers
159 views

How to dynamically import a component in sitecore jss inside next js application?

I know the conventional way of dynamically importing a component : const Report = dynamic(() => import('PowerBIComponent'), { ssr: false, }); But since application uses [...path] to catch ...
Nishant's user avatar
0 votes
1 answer
153 views

JSS Placeholder Children

I'm developing a carousel using JSS. The items that would go into the carousel are well known (through the Placeholder Settings), but I am using a Placeholder to hold those items. I need to get the ...
Gary Williams's user avatar
0 votes
1 answer
58 views

Facing this error in experience editor

jss start:connected command is also not working, I used following comands jss setup jss deploy config jss deploy app -c -d { "sitecore": { "instancePath": "C:\\inetpub\\...
Bhanu Pratap Singh's user avatar
0 votes
0 answers
188 views

Server Error TypeError: Cannot read properties of null (reading 'key') i18n/graphql-dictionary-service.js

I am running Sitecore 10 locally with Next.js The site works fine in Experience Editor but in normal mode i.e. http://localhost:3000/ I started getting this error below. Tried everything but in vain, ...
Zaheer Tariq's user avatar
2 votes
1 answer
222 views

Sitecore Search Index Sitecore Content using a Request Trigger and Experience Edge

I’m trying to index the Sitecore content with the following settings of the Sitecore search walkthrough https://doc.sitecore.com/search/en/developers/search-developer-guide/walkthrough–configuring-an-...
Gabriel Baldeon's user avatar
2 votes
1 answer
79 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
1 vote
0 answers
181 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 ...
Praveen Soni's user avatar
0 votes
1 answer
147 views

GraphQL Edge Endpoint is not rendering custom Error Pages

On JSS 21.1 with SXA, the Next.js custom error pages functionality isn't working. I've configured it per the documentation. I've tracked it down to the GraphQL query. Request: query ErrorPagesQuery($...
Mark Gibbons's user avatar
  • 5,642
5 votes
2 answers
365 views

Sitecore JSS react SSR - how to setup higher environment(UAT/PROD) rendering host for experience editor

All our resources are in azure! Our Sitecore instance, front end codes are hosted as app-services! We are trying to setup rendering host for experience editor. We are looking for ideal way for SSR ...
Raj's user avatar
  • 53
1 vote
1 answer
87 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 ...
user13283's user avatar
0 votes
0 answers
15 views

Not able to create manifest file .PFA in sitecore jss with next.js [duplicate]

I am trying to integrate sitecore-jss with next.js, when I am trying to run the below command 'jss deploy app --accept certificate 426a2098ef89941dec9f277a4bc1ef677f555a4a -c -d' getting not able to ...
Reshma Holennavar's user avatar
1 vote
0 answers
69 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 --...
Saravanan's user avatar
7 votes
0 answers
110 views

Is there a life for Sitecore .Net developers in a long-term perspective? [closed]

For a long time, .Net was a primary technology for Sitecore CEP/XP. Usually, Sitecore developers used WebForms or MVC for building websites on top of Sitecore XP and easily extended or changed the ...
Alexander's user avatar
  • 1,273
2 votes
0 answers
185 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
1 vote
1 answer
866 views

XM Cloud - "Unable to connect to the remote server" when viewing a page in Experience Editor

When viewing a Site's page in the Experience Editor, the Editor does not load and the following error message is displayed; Unable to connect to the remote server The CM server logs displays the ...
Jonathan Robbins's user avatar
1 vote
1 answer
470 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 ...
Jey's user avatar
  • 343
1 vote
2 answers
418 views

Sitecore JSS update content item

I have created a hello world JSS application with Angular + Rest application. I have deployed the application to my local sitecore 10.3. Later, i have created a new component and i am able to add the ...
Jey's user avatar
  • 343
0 votes
2 answers
242 views

Access layout service response sitecore.context object in Layout.JS file

In JSS react how to access the layout service response object sitecore.context in src/Layout.js. If you look at src/Layout.js file, In default we can access only sitecore.route fields but not sitecore....
Andi AR's user avatar
  • 763

1
2
3 4 5
14