Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module.
508
questions
0
votes
0
answers
18
views
NextJS JSS on container missing sitecore items
I'm following this walk through to setup NextJS JSS on container
https://doc.sitecore.com/xp/en/developers/hd/190/sitecore-headless-development/walkthrough--setting-up-a-development-environment-with-...
3
votes
0
answers
27
views
Is it possible to use Custom Form Elements in JSS? If yes, how?
We are trying to include Sitecore Forms in our React Application using JSS. We're able to include regular forms, but when trying to use custom form elements using the design of the customer, we get an ...
0
votes
2
answers
50
views
Webp Image not generating when azure CDN enabled
With Dianoga.WebP.config enabled, I replaced JSS media handler in web.config:
with custom one:
using MediaRequestHandler = Sitecore.JavaScriptServices.Media.MediaRequestHandler;
public class ...
1
vote
1
answer
40
views
Expose configuration items using JSS
Quiet new to JSS world. We have a requirement to expose the sitecore configuration settings to FE using JSS headless architecture. On top of this, we have other global data that needs to be exposed ...
1
vote
1
answer
49
views
Headless Dictionary Service not working
I am using Sitecore Headless Services Server XM 18.0.0, and the Layout Service(like: /sitecore/api/layout/render/jss?item=) is working just fine. But when I tried to use the Dictionary Service I got ...
0
votes
1
answer
39
views
Placeholder within Component not showing in JSS
I am new to Sitecore JSS development. I am really struggling with how placeholders are working in JSS. I am using VUE.JS for my development. I have three root level placeholders in the layout.vue. I ...
0
votes
0
answers
30
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 ...
2
votes
1
answer
56
views
'jss bootstrap' causes JavaScript heap out of memory error on graphql-let step
I have the Nextjs sample app running in connected mode to my existing Sitecore v10.2 implementation using JSS v19. It's all working correctly - I'm able to create new components and edit them in the ...
1
vote
1
answer
93
views
Next.js Headless images not working from rendering / fe instance (System.UriBuilder.set_Scheme)
I'm facing issues with images on our Next.js headless application.
My problem is that I always get an image error about a pipeline processor. But only when I go relative over the rendering instance ...
0
votes
0
answers
43
views
Graph QL Search Result Computed Field
I have started to look at using Graph QL for search using the endpoint that comes out the box with Sitecore 10.1. I've read that the results are based on an item but had lazy loading eg. You have ...
0
votes
0
answers
37
views
MediaRequestProtection: An invalid/missing hash value was encountered. in JSS site
I am using Sitecore 10 and JSS 15.0.1 with the angular app. When we changed the Media.RequestProtection.SharedSecret setting, we are seeing a lot of errors Media request protection like below:
...
0
votes
2
answers
47
views
JSS deploy items ERROR: TypeError: Cannot read property 'forEach' of undefined
When trying to deploy a newly generated JSS App to the new Sitecore server, I'm receiving the following error:
Unexpected error processing reply from import status service:
TypeError: Cannot read ...
0
votes
1
answer
80
views
Sitecore JSS Dynamic Placeholders
I have JSS Next.JS based component, I want to have 2 placeholders with the same key, but with a dynamic suffix. e.g. I need 2 equal columns.
<div>
<Placeholder name='jss-6' rendering={...
0
votes
0
answers
35
views
Add rendering to a placeholder by default for layout service
Aside from adding the rendering into the standard values of a template. What are other ways of adding a rendering into a layout service placeholder result?
0
votes
1
answer
28
views
Sitecore JSS next.js Link component renders unnecessary field attribute
If you are using next.js v19.0.2 and using the "Link" component with "field" the following markup is generated.
<a field="[object Object]">
...
</a>
This is ...
0
votes
0
answers
19
views
Disable root item search in Layout Service
Can I disable item=/ request on my layout service? I notice that this request is kept alive when the request to layout service does not include the sc_site parameter (site context). It continuously ...
0
votes
1
answer
64
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 ...
0
votes
1
answer
34
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 ...
2
votes
0
answers
43
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 & ...
0
votes
0
answers
31
views
Import Mock data into the project
I'm new to Sitecore JSS and I'm trying to set up my project on disconnected mode as I am using a non-windows/Macbook device. Basically I tried using docker for Mac, VirtualBox and Virtual Machine, but ...
0
votes
3
answers
128
views
Layout Service performance optimisation
I'm using the JSS Headless Proxy which calls down to the Layout Service for SSR. I'm seeing high TTFB to the Layout Service direct:
New session: ~400ms to ~500ms
Subsequent requests: ~200ms to ~300ms
...
0
votes
2
answers
56
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 ...
0
votes
0
answers
35
views
Chunk split in Sitecore JSS + React
I have just started working with React with Sitecore and need to implement a chunk-split to improve the performance of my project.
I googled about it and found this link and implemented it as per this ...
0
votes
2
answers
58
views
Sitecore GraphQL query - custom image prefix
Currently I have a GrahpQL query with bunch of images returning src as "/-/media"
query:
field(name:"Image"){ ...on ImageField{src} }
Result:
"Image": {
"...
0
votes
0
answers
31
views
NullReferenceException when deploying JSS app
I'm trying to create a simple NextJS site using Sitecore (v10.2) & JSS (v19). I have successfully managed to create some components, add some content etc. but now I needed to create a new ...
4
votes
1
answer
59
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 ...
0
votes
0
answers
25
views
Set different Language from jss component in Sitecore 10.2
I have some difficulties to set different Languages from jss component in Sitecore 10.2.
I've seen the answer:
set different Languages from jss component but doesn't work on Sitecore 10.2.
Anyone can ...
0
votes
1
answer
49
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=...
0
votes
0
answers
18
views
Sitecore children of children Field Value on Query of GraphQL [duplicate]
I am currently working on trying out the Sitecore GraphQL Query where
I just get all the children items of a specific data source in Sitecore Tree. However,
I need all children of children results ...
0
votes
3
answers
84
views
In multilingual site, how to ignore region for sc_lang param in jss layout api and get the appropriate language content
By default, to get a specific language content, we need to pass the query params for sc_lang as es-MX, fr-FR..ETC (sc_lang="es-MX") in the JSS layout API to get the specific lang contents.
...
0
votes
1
answer
41
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 ...
0
votes
0
answers
70
views
How to create a Sitecore JSS-Next.js app using JSS CLI
Getting below error on command -jss build: creating a Sitecore JSS-Next.js app using JSS CLI
Generating static pages (6/9)
Error occurred prerendering page "/en/graphql". Read more: https://...
0
votes
0
answers
27
views
Aspcore Rendering SDK - Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Unexpected character encountered while parsing value:
We have created a solution based on template sitecore.aspnet.gettingstarted for Sitecore ASP Net Core Rendering SDK headless.
Pushed all the Sitecore items available in this solution successfully and ...
0
votes
1
answer
84
views
Layout Service returns 404 on CD Servers for Sitecore 10.2 XM
For my new Sitecore 10.2 XM instance I have set up Headless Services 19.0 on the CM and CD instances as described on the docs site.
When I test the endpoint on the CM server https://<CM Url>/...
2
votes
1
answer
69
views
Is there any way to debug Sitecore JSS connected mode?
We have developed Json rendering using existing Sitecore templates and also created JSS components from the JSS application. Somehow in between development facing some issue in code.
As a developer, ...
0
votes
0
answers
43
views
Multisite in Sitecore JSS
I'm using Sitecore 9.1.1 with JSS 11
I need to implement the multisite solution in Sitecore JSS.
Following below URL for the multisite.
https://medium.com/geekculture/sitecore-jss-multisite-single-...
1
vote
0
answers
45
views
Sitecore 10 React JSS app to embed into non-Sitecore website
I did one POC with the help of this documentation for embedded JSS app.
In this sample, Sitecore content which embedded app is consuming is in same Sitecore instance for Sitecore MVC site where we ...
2
votes
1
answer
86
views
Current project does not support file deployment into Sitecore instance
I've created a sample nextjs app using jss cli, but when I try to deploy it using:
jss deploy app
it deploys items successfully, but not files and throws the message below:
The current project does ...
0
votes
1
answer
106
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 ...
0
votes
0
answers
25
views
Sitecore ASP.Net Rendering SDK - Update Sitename on each request
Refering the OOTB sample code for Sitecore ASP.Net Rendering SDK, we provide the sitename at the application level and it execute at the very first time only, not with every request.
services....
2
votes
2
answers
68
views
Sitecore WebForms/MVC site migration to JSS
Can somebody share known pitfalls when migrating WebForms or MVC site that uses Personalization/AB Testing/Analytics/Sitecore Forms/EXM/SXA etc. to JSS?
Any known limitations?
Sitecore versions: 9.2 ...
2
votes
0
answers
62
views
Extend GraphQL schema for custom field
I'm working on a 10.2 solution with JSS & NextJS using the GraphQL (edge) endpoint. I already noticed this endpoint is sometimes quite different compared to others and now I would like to extend ...
1
vote
0
answers
50
views
Debug Sitecore JSS React while SSR
How can I debug the JSS React application while using SSR, how to run the application with SSR in local machine with default npm commands?
0
votes
0
answers
52
views
Skip or exclude standard fields from GraphQL query results
Is there a way to exclude or skip standard fields from GraphQL query results. I'm sure this has been asked before but I couldn't find any helpful information.
0
votes
0
answers
32
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 ...
0
votes
0
answers
16
views
Do Pattern Cards work fine when my Sitecore page is being consumed as a HTML output
I have a headless implementation and my Site pages are loaded via a GET request to my Sitecore site which provides output as HTML to my client code.
Is it possible for pattern cards and profile cards ...
0
votes
0
answers
926
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 ...
0
votes
0
answers
14
views
JSS import security is not stopping content from being overwritten
I am trying to stop the JSS deploy to my local sitecore environment from overwriting some personalisation rules on a route that I have applied on a route. I have tried following the steps outlined in ...
0
votes
1
answer
89
views
What version of sitecore jss is compatible with a given sitecore-jss npm package
I am trying to find some sort of compatibility matrix that will tell me what version of JSS https://dev.sitecore.net/Downloads/Sitecore_JavaScript_Services/ is compatible with the sitecore-jss npm ...
0
votes
1
answer
75
views
Getting Dianoga to work with the jssmedia urls
I've been at it a couple of days now and gotten Dianoga working, converting all of our "old media" images to shiny new webp format images. It works great for the standard ~/media url ...