Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module and JSS CLI.
581
questions
0
votes
1
answer
238
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 ...
2
votes
1
answer
246
views
JSS app deployment issue - imports are disabled on the SXA JSS sites
On JSS deploy getting error:TypeError: Cannot read property 'forEach' of undefined
In the Sitecore log, the error mentioned is: "Import requested wipe import on 'jsssitename' but wipe imports ...
2
votes
1
answer
70
views
The arabic version not deployed to Sitecore from JSS App
I am using Sitecore 10 with JSS and my app is built in Angular. After deploying the app to Sitecore I found that the Arabic version of the pages is not deployed to Sitecore, while the English version ...
1
vote
1
answer
64
views
Asp.Net Model binding is not working for any node that is under "placeholders" using Sitecore ASP.NET Rendering SDK
I am following this https://doc.sitecore.com/developers/100/developer-tools/en/model-binding.html to bind my custom model for complex json response from my LayoutService API.
The properties and fields ...
3
votes
1
answer
94
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
1
answer
62
views
How to get ContentBlockModel/Component Model from PageModel directly using asp.net core rendering sdk
I am following the document https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html to create a test sample project for Sitecore Headless ...
1
vote
1
answer
230
views
Relative item path in layout service call is not working
I am trying to access Sitecore 10.1 item via layout services and it is working fine with GUID and full path. But when I am trying to access it via a relative path from the current app, it is not ...
8
votes
1
answer
14k
views
pywintypes.error: (2, 'CreateFile', 'The system cannot find the file specified while installing Sitecore Docker images
I am following the document https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html to create a test sample project for Sitecore Headless ...
1
vote
0
answers
143
views
Next.js Sample Site Installation Failed
I am trying to install Next.js Helix Example site:
Everything looks good until items are serialized:
Successfully built ec6606563cd4
Successfully tagged basic-company-nextjs-rendering:latest
Starting ...
1
vote
0
answers
125
views
Error deserializing import data when run "jss deploy app --includeContent"
I am using Sitecore 10 with JSS. When I tried to deploy my app to Sitecore I got the below error
Sitecore has accepted import task JSSImport-atlp-informational-web-1:17:10 PM
Job started: JSSImport-...
1
vote
1
answer
150
views
How to identify contacts using Reactjs
I have LoginComponent in ReactJs with username and password. How can I store the logged in user details in xDB through ReactJs ?
In case if I am creating an webapi to store the details using Sitecore....
2
votes
0
answers
74
views
Sitecore Virtual login and accessing userProfile.context during layout service execution
we are working on custom personlization rules with user data available outside sitecore. App is developed in jss in ssr mode. With sitecore login setting up virtual user context when user logged in to ...
1
vote
2
answers
1k
views
Connection to your rendering host failed , Not Found error In Experience Editor
I am working on setup a local XP0 Sitecore 10 development env for training, and one of the learning curves is to host the headless MVP site without containers, I had installed all pre-perquisites, ...
1
vote
0
answers
232
views
JSS disconnected mode. Not able to add my first component into the “jss-main” place holder
Node JS version: v14.15.3,
JSS Version: 15.0.1,
Mode: Disconnected,
Issue: Not able to add my first component into the “jss-main” place holder
Following are the steps:-
I have created a JSS ...
4
votes
1
answer
1k
views
JSS + Sitecore Forms: "unable to verify the first certificate"
New to JSS. Trying to use Sitecore Forms + JSS for the first time, I followed JSS documentation, creating a form in Sitecore; when I run jss deploy component Form --allowedplaceholders jss-main, I get ...
2
votes
2
answers
297
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 ...
1
vote
0
answers
156
views
Removing width and height attributes using JSS <Image/>
I was wondering whether there is a way to suppress rendering the width and height attributes when using the Image component from @sitecore-jss/sitecore-jss-react? Or under the hood, it basically uses ...
2
votes
1
answer
191
views
How to POST data to JSS Route
I am using Sitecore JSS in integrated mode. I have below scenario and need help to achieve it.
When user will login to the web site, he can be part of one or more groups. After login user will see the ...
3
votes
2
answers
402
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 ...
0
votes
1
answer
139
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. ...
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 ...
2
votes
1
answer
124
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
81
views
Generated "componentFactory.js" doesn't cater for named exports?
(SiteCore newbie here)
I'm currently working on a JSS React project. I created an Icons component which will export different icons as named exports:
export const Icon1 = () => <svg>...</...
0
votes
2
answers
181
views
Is Sitecore JSS 15 compatible with Sitecore 9.1
We are running Sitecore 9.1, will Sitecore JSS 15 be compatible with this version?
3
votes
1
answer
174
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 ...
0
votes
1
answer
485
views
JSS Layout Service fails an item resolving by path with virtual directory
I am using Sitecore 9.3 JSS with a Create React App front-end with a virtual folder setup.
When I create a link pointing to the site root item, it works fine when directly browsing to it e.g. opening ...
2
votes
0
answers
51
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.
...
0
votes
1
answer
120
views
When you use a sitecore <Image> tag with classes, why are the classes removed when you add an image in the experience editor
When I add an image through experience editor this is the image tag I get when I inspect the source.
<img src="/sitecore/shell/-/media/image.jpg?h=2796&iar=0&w=4554&la=...
2
votes
0
answers
63
views
Is there a change in GraphQL Schema between JSS version 11 and 14?
I am currently using sitecore 9.0.2 and have installed JSS to query the data using graphQL queries. I use below features of JSS:
Querying data using http://sitecore.local/sitecore/api/graph/items/...
1
vote
1
answer
271
views
Null refrence exception for RenderingExtensions.IsSerializable
Sitecore 9.3 JSS
What is happening:
Many a time, we are getting 500 from the layout service.
In the log we have the following entry:
ERROR Exception during Layout Service RenderItem (configuration: ...
1
vote
0
answers
610
views
How to host a JSS app on localhost at a specific port?
How can I configure Sitecore to host my JSS app at a specific port on localhost? e.g. if I navigate to localhost:44011, my site renders instead of the default Sitecore home page.
Our React single-...
-1
votes
1
answer
53
views
Does installing JSS package on sitecore modify database schema
I am planning to install JSS package on my sitecore instance to use GraphQL APIs. I want to know wether installing JSS package change/alter my database schema or solr indexes. In case I want to ...
1
vote
0
answers
78
views
Error while deploying items with more than one component
When I create 2 components in the YML files I get the following error:
ManagedPoolThread #11 09:09:12 INFO [JSS] - Creating route-level
datasource folder (RouteLevelDatasourceStrategy) ...
0
votes
0
answers
348
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 ...
2
votes
1
answer
102
views
What are the steps I could follow to debug non-functioning JSS app integrated mode?
My JSS app does not render in integrated mode: http://my-first-jss-app.dev.local/en-US/. The header renders (with logo, documentation styleguide links) but the content does not. What are the steps I ...
0
votes
1
answer
158
views
What is the best JSS template field naming convention
What is the best practice for naming the template fields in Sitecore JSS?
Layout service is not making any changes to the filed names when returning JSON response so it seems quite natural to use ...
2
votes
1
answer
80
views
Using the Layoutservice with a virtualFolder setup
I am using Sitecore 9.3 JSS with a virtualFolder site setup. My JSS site is located at /jss while there is another (MVC) site running at /.
When running jss start:connected I get "Placeholder not ...
2
votes
1
answer
56
views
Can we use SXA Search Functionality with JSS pages
With Sitecore 9.2 and JSS, can we use the SXA search functionality and configuration (scopes and boosting etc.) with JSS ?
Has anyone done this or did you encounter any specific issues?
0
votes
2
answers
436
views
Image not working when fetching it with GraphQL in connected mode
This is on sitecore 10 / jss 14.0.1
I'm using JSS in connected mode (jss start:connected) since I will be fetching data with GraphQL. In my graphQL I fetch an image using this code:
item(path: $item)...
2
votes
0
answers
196
views
Personalization on Layout Service not working when calling from JSS App
My Sitecore CD website in IIS is http://cd.my-website.com with a role as ContentDelivery. This site contains Sitecore and custom API code in Headless mode.
The React code for the JSS app is on a ...
0
votes
0
answers
228
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 (<...
0
votes
0
answers
158
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 ...
1
vote
1
answer
204
views
JSS Deployed to Docker Container: Links to media files missing port number
When I deploy a JSS app to a Sitecore instance running in a Docker Container and run our applications in Integrated Mode, our application is accessible with a hostname and port number (e.g. http://jss....
1
vote
1
answer
355
views
Sitemap in SXA JSS Site
We are using REACT App in the front end and using capabilities of Sitecore JSS(12.0) for headless view and SXA(1.9).
I have configured settings to get sitemap settings (by inheriting sitemap template ...
1
vote
1
answer
987
views
Node render engine project directory path '{website-path}\app' does not exist
We reently moved Sitecore First from CodeFirst. Which means we have deployed jss app to the Sitecore. But when we try to open Exprience Editor, we face below issue:
Error Rendering Sitecore....
3
votes
1
answer
283
views
How to create a new JSS angular app with older versions of angular/typescript
I want to create a new JSS app but with older versions of angular and typescript.
I have version 11.0.2 for JSS
and when I run
ng --version
this is what I get
@angular-devkit/build-angular 0.12.4
@...
2
votes
1
answer
674
views
How to handle item not found in jss headless
Our requirement is to show site specific error page if the requested page is not found.
We have handled item not found using HttpRequestBegin pipeline Item resolver. If the context item is null we are ...
2
votes
1
answer
577
views
Unexpected response from import service: Invalid Authentication
I'm trying to perform the command to deploy my application to a remote CM server
jss deploy app --includeContent --includeDictionary
but I receive the following error
Sending package sitecore\package\...
2
votes
0
answers
219
views
A rendering error occurred: Cannot read property 'fields' of undefined
Trying to add RouteType item (as provided in samples on creating a new JSS app).
Once I add in experience editor, it appears fine like below
But as soon as I click save, I got below error message. ...
1
vote
3
answers
435
views
How to run multi language JSS frontend websites on same azure app service?
One of my projects is using Sitecore 9.1.1 & JSS, also Server-Side Rendering (SSR) Mode is running successfully on Azure App Service. Ex. www.example.com - which is an English language website is ...