Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module and JSS CLI.
666
questions
3
votes
2
answers
2k
views
Unexpected response from import service: Status message: Found
Fresh new Sitecore XP 9.2 + JSS 12.0 and trying to deploy an OOTB react JSS app.
The ApiKey is created (with two * for test only).
The Layout Service is responding on /sitecore/api/layout/render/jss?...
3
votes
2
answers
827
views
Embed a Sitecore JSS app/component within an existing non-Sitecore website
Could you let me know please if there is a possibility to embed a Sitecore JSS app/component in an existing non-Sitecore website?
To be more explicit our client has multiple external non-Sitecore ...
3
votes
1
answer
320
views
Remove and/or rename fields in Sitecore JSS via template definitions
Is there is way to remove or rename a field in Sitecore JSS via template definitions?
Even with an ID on the field, it won't rename. Deleting the field object will not delete the field in Sitecore.
...
3
votes
1
answer
2k
views
JSS Layout Service not returning items from datasource with query
I am trying to use the JSS service Layout API to get the items from a datasource specified in a control.
When I set a specific item as a datasource, I do get the item fields.
But when I use a query ...
3
votes
1
answer
257
views
Hitting the Layout Service Endpoint Is Not Recording Analytics
I want to use the layout service endpoint that is a part of jss. If I make a request to the layout service endpoint should any analytics events be triggered by default? Currently it seems that making ...
3
votes
2
answers
1k
views
Import template from Sitecore to JSS React application
I understand the mecanism when you create component code-first and then you import it into Sitecore.
I try to understand one point, how can I import new component from Sitecore (Sitecore-first ?) to ...
3
votes
2
answers
775
views
Sitecore JSS URL redirecting to not found
Getting the below error when browsing the app URL in connected mode:
On browsing https://xyz-app.dev.local it gets redirected to https://xyz-app.dev.local/sitecore/service/notfound.aspx
I can see the ...
3
votes
1
answer
493
views
How to get 404 status code on Rendering host
There is a Sitecore Headless setup with SSG enabled. NextJS allows to show own 404 page but the requirement is to managed the page in CMS.
Quick solution was to extend the getStaticProps method in [[.....
3
votes
1
answer
530
views
SSR Component Level Data fetching in JSS?
In a Headless Sitecore site I'm doing the front-end on, I'm trying to implement search. It's a JSS/Next.js based front end on top of the Sitecore back end. We've got:
JSS 20, Next 12.2, Sitecore 10....
3
votes
1
answer
201
views
Fields "children" conflict because they have different arguments
When trying to access the children of the different templates at the same level. We will be getting this error
Fields "children" conflict because they have different arguments. Use different ...
3
votes
1
answer
885
views
Sitecore Forms CORS/Verification token error in Chrome, works in Firefox
I am trying to submit a form in Angular, through JSS. In chrome, I get a CORS error complaining the access-control-allow-origin header is missing.
Just for fun, I added this to ...
3
votes
1
answer
225
views
Why is JSS rendering items of template Sample Item but not of any other template?
I installed Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924 in a 9.3 instance.
I then created an item under the Home item using the /sitecore/templates/Sample/Sample Item ...
3
votes
2
answers
955
views
Unexpected response from import service: Status message: Forbidden
I have a JSS Tenant and Site working and Running. I created another Jss Tenant and JSS Site in it using Sitecore 9.3. Created a JSS App as I did before.
I created a new API Key for my second Site. ...
3
votes
1
answer
838
views
JSS deployment issue with react, using JSS Tech Preview 4
JSS deployment issue with react, using Tech Preview 4.
Here is the complete log:
PS F:\Drive\my-first-jss-app> jss deploy app -c -d
JSS is creating a manifest for my-first-jss-app to ./sitecore/...
3
votes
1
answer
152
views
Adding a list of objects to Context Data returned by Layout Service
I was working on a project that needed some data passed on through the context. Logic was implemented based on https://jss.sitecore.com/docs/techniques/extending-layout-service/layoutservice-extending-...
3
votes
2
answers
571
views
Sitecore form save data action only creates one form entry for multiple submissions
We have a form on our JSS site's home page. When submitted, it uses sitecore's built in "Save data" action. However, it looks like when you submit the form multiple times, all rows in the ...
3
votes
1
answer
282
views
Layout Service Sending Sitecore Item Name instead of Component Name
I have a brand new Sitecore 10 site, with SXA and JSS installed. I have migrated an accelerator site we built for Sitecore 9.3, so it is possible that this behaviour was introduced, however it does ...
3
votes
1
answer
401
views
JSS Field naming convention
Will or should Sitecore automatically sanitize field names when serialising them as part of the layout service or do we need ensure we define fields in Sitecore using a consistent format?
e.g. would "...
3
votes
1
answer
215
views
Duplicate data source items when selecting an existing content item
Sitecore version: 9.2
We see duplicates while editing the JSS page in the experience editor.
Steps to replicate:
Add Component -->Select Rendering-->Select an existing content item
3
votes
2
answers
1k
views
Access Referenced Items using Integrated GraphQL
I am having following content tree:
In GraphQL (GQL), if I am rendering Product-1 (current context item) and wanted to access all the categories where Product-1 referenced in
the multi-list field of ...
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
363
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
236
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
2
answers
982
views
Edit frame with Sitecore JSS
I am using Sitecore 9.2 with JSS and code first approach. I have one component which has datasource, datasource is pointing to folder and folder has some child items. I am getting data using GraphQL, ...
2
votes
1
answer
457
views
Service based architecture in sitecore
I am analysing on the possibility of creating a web application using Sitecore where the web application is pure thin client using js based framework (knockout or angular) which can consume the ...
2
votes
1
answer
941
views
Can we use helix principle into JSS application?
We can apply Helix principles for back-end(C# MVC) application for modular architecture.
Can we use Helix principles for JSS application?
Is it recommended to use Helix for front-end application(JSS)...
2
votes
2
answers
2k
views
Share Sitecore content to Native Mobile Apps (IOS swift and Android java)
If we wanted to provide data (get/set operations on content tree, analytics, personalization, tracking data) from Sitecore 9 to native mobile apps (not based on Sitecore Mobile SDK and Xamarin but ...
2
votes
1
answer
1k
views
Redirect map strategy when using Headless
What is a good strategy for handling 301 / 302 redirect maps when using Sitecore headless with SSR and the headless proxy?
My current thoughts are:
Need to handle SSR requests - either IIS redirect ...
2
votes
3
answers
471
views
Layout API returning strange code into placeholder
Here is my Sitecore tree
Here is my data item in the experience editor (using the default Welcome component). I removed the Sitecore background image that was in the CSS.
Here is what the layout API ...
2
votes
1
answer
767
views
Sitecore JSS placeholder issue on Route
I am trying to create a new route using Sitecore 9.2 JSS. Below steps I have followed:
I have created a new Route i.e. Product.
Then I have created two new placeholders jss-header and jss-footer. (...
2
votes
1
answer
2k
views
404/500 error page implementation - ReactJS client
We are working on Sitecore JSS with react js client side. We need to implement 404 and 500 error pages in Sitecore JSS application. There may be chances of adding multiple Sitecore JSS sites.
How ...
2
votes
1
answer
3k
views
Sitecore Filtering by Field Value on Query of GraphQL
I am currently working on trying out the Sitecore GraphQL Query where I just get all the items of a specific location in the Sitecore Tree. However, I may need to filter the item results based on a ...
2
votes
2
answers
700
views
XM 10.1.0 & 10.1.1 + JSS & SXA - Could not load file or assembly 'Sitecore.Analytics, Version=16.0.0.0'
Vanilla Sitecore 10.1+ install with JSS 16 and SXA 10.1 installed. After the initial install, I'm able to navigate to the Launchpad normally. After a period of time or unknown trigger, I'm unable to ...
2
votes
1
answer
609
views
jss create is not supported from JSS CLI version 20.0.0
I am trying to create an application for sitecore 10 JSS with react. But I am getting the error
jss create is not supported from JSS CLI version 20.0.0
can you please suggest.
2
votes
2
answers
373
views
JSS: Azure deployment
In our case, both test and prod environments are Azure app services. So currently when we deploy to test:
I replace the layoutServiceHost and deployUrl in scjssconfig.json to be the address of QA ...
2
votes
1
answer
189
views
How to handle custom http response codes in JSS?
The OOTB JSS starter projects provide a route handler implementation that is configured to handle 404 responses by rendering the NotFound component. How can I customize what the end-user sees for ...
2
votes
1
answer
978
views
What are differences between server side rendering and client side rendering in JSS?
Please illuminate main differences between server side rendering and client side rendering for JSS app?
Is server side rendering only required for things which are tightly couple with Sitecore like ...
2
votes
1
answer
374
views
How to get Standardvalues from Sitecore GraphQL
I am trying to get the sortorder value from Sitecore GraphQL and it is not recognizing the field. Any config needs to be updated ? Am i missing some thing here?
2
votes
1
answer
1k
views
Sitecore JSS Custom RenderingContentresolver help
We are using JSS for one of our clients. We have a requirement to fetch child items upto n level.So we built a custom rendering content resolver for it. It's working well in connected mode.
Now if we ...
2
votes
1
answer
3k
views
Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address
I am using Sitecore 9.1. I can able to run my sample angular application in connected mode using the command ">jss start:connected".
But i cant able to open my site in local integrated mode , even in ...
2
votes
3
answers
2k
views
Get Items from data source folder by JSS/React
I have this react component (rendering) which has a data source (a folder with items).
Is there any way to get those items and render their fields in react component?
In props was passed ...
2
votes
1
answer
137
views
Write acces blocked by Sitecore JSS workflow
I have an issue that I cannot fix atm.
We created a new Security role and assigned rights to it. However Content Editors that have this role cannot edit any items as the JSS Workflow currently ...
2
votes
2
answers
409
views
How to include editable component data into static non-Sitecore component?
I have a footer that I want to include by default into the layout rather than be injected as a Sitecore component by a content editor. The footer data, however, should be editable and translatable. Is ...
2
votes
2
answers
371
views
Sitecore JSS with headless mode can be hosted in AWS
If using sitecore JSS App with Headless SSR via sitecore-jss-proxy, can the Node.js app be hosted on AWS server?
Note did mention below, but not clear about AWS. I understand Sitecore install have ...
2
votes
1
answer
227
views
Cannot get FullWipe to work with Sitecore JSS Tech Preview 4
I've setup a Sitecore 9.0.2 solution, and i'm testing out JSS. I'm using code-first, and I'm trying to get FullWipe to work on jss deploys.
According the documentation, i'm supposed to set ...
2
votes
1
answer
335
views
React vendor chunk size quite large
I recently started working on a JSS React template. Today I ran jss build and found that the vendor chunk size is 436KB non-gzipped. Being that JSS is built on top of CRA whose vendor files total ...
2
votes
2
answers
98
views
Unable to install JSS Server Package on Azure Web Apps
Installed SC9 update 1 using sitecore market place. I've been trying to setup JSS on Web Apps but not having any luck. When I try to install JSS Server package the installation process keeps spinning ...
2
votes
1
answer
181
views
I want my JSS app to be the homepage
I would like to see my app when I go to my local root URL (in anonymous mode).
I deleted the Home website from the admin.
So currently I have this tree:
my-app.config looks like this:
However, ...
2
votes
2
answers
641
views
Angular Bundle size issue
To get a better understanding of the JSS library I ran the bundle analyzer on the Angular Sample project and I'm getting 169 modules on my main bundle. Does anybody knows where those 169 modules are ...