Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module and JSS CLI.
664
questions
0
votes
0
answers
34
views
Next.js Multisite Add-on not working in local containers because of CORS issues
Wondering, has anyone at all managed to make Next.js Multisite add-on work well?
I spent lots of time trying to overcome a CORS issue, which I don't know how to solve. There is a troubleshooting guide,...
1
vote
1
answer
52
views
The images or media from CD returns http instead of https on Sitecore
I have setup Sitecore JSS project from Getting Started template and I am using XP1 topology with CD and CM on separate containers to simulate actual production environment. However my problem is the ...
1
vote
1
answer
57
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 ...
0
votes
0
answers
24
views
Numerous type errors when turning off strictTemplates in Angular 15
I would like to enable strictTemplates in angular but when i do I am getting some of the following type errors.
By default most of our rendering variables are using ComponentRendering Type from JSS, ...
1
vote
1
answer
44
views
RSS Feeds in NextJS Application
We've got a Sitecore headless project using NextJS. I've setup an rss feed using the OOTB Sitecore RSS functionality and it seems to be generating the correct xml when I view it through EE or preview.
...
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 ...
2
votes
1
answer
63
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 ...
0
votes
0
answers
29
views
hostname could not be parsed error when hitting custom MapHttpRoute
I am running Sitecore (10.2)/SXA backend in Docker. I am running NextJS directly on my host machine via npm run start:connected.
On upstream environments, when I hit /export/doc?id=xxxxxxx, a file is ...
0
votes
1
answer
36
views
POSTing to localhost:3000/api/editing/render results in error "Unable to extract editing data from request"
I am doing some troubleshooting with my Sitecore(10.2.1)/NextJS(12.3.1)/JSS(20.0.3)/Docker setup. I am running my backend in Docker and my front end via npm on my host machine.
I am POSTing to http://...
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 ...
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 ...
0
votes
0
answers
37
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.
...
0
votes
2
answers
66
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 ...
0
votes
1
answer
50
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 "...
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 = ...
2
votes
2
answers
118
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:
&...
0
votes
0
answers
39
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 ...
1
vote
4
answers
229
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 ...
2
votes
1
answer
181
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 ...
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 ...
0
votes
0
answers
48
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 ...
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
0
votes
2
answers
108
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 ...
0
votes
0
answers
39
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: ...
0
votes
1
answer
67
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 ...
1
vote
1
answer
79
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 ...
1
vote
1
answer
83
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 ...
2
votes
2
answers
50
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?
2
votes
1
answer
105
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 ...
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
1
answer
177
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 ...
0
votes
0
answers
23
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 ...
0
votes
0
answers
35
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 ...
1
vote
2
answers
273
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 ...
0
votes
1
answer
68
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 ...
1
vote
0
answers
68
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
56
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, ...
2
votes
1
answer
96
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 ...
1
vote
2
answers
65
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 ...
0
votes
1
answer
181
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": {
...
0
votes
0
answers
102
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 ...
0
votes
1
answer
35
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 ...
0
votes
1
answer
47
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\\...
0
votes
0
answers
128
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, ...
2
votes
1
answer
107
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-...
2
votes
1
answer
44
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....
1
vote
0
answers
131
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 ...
0
votes
1
answer
51
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($...
5
votes
2
answers
201
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 ...
1
vote
1
answer
40
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 ...