Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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 sitecore log, error mentioned is: "Import requested wipe import on 'jsssitename' but wipe imports are ...
0
votes
1answer
15 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 ...
0
votes
0answers
16 views

Deploy the images from JSS app to sitecore [closed]

I am using sitecore 10 with JSS and after deploying the app to sitecore I found that most of the images are missing and not deployed. When I checked this path in my app 'package\temp\atlp-...
0
votes
0answers
12 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
1answer
28 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-...
0
votes
0answers
16 views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: document is not defined

I am using sitcore 10 with JSS and after deploying my angular app to sitecore, i got this error when trying to open the home page in experience editor. Error Rendering Sitecore.JavaScriptServices....
3
votes
1answer
47 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
1answer
43 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 ...
1
vote
0answers
27 views

Node render engine project directory path '{website-path}\app' does not exist. error when trying open the JSS site

I am using sitecore 10 with JSS, and I deployed the app to sitecore but when I am trying to open the site it gives me error Also i checked this link Node render engine project directory path '{...
1
vote
0answers
41 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-...
0
votes
1answer
46 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....
1
vote
0answers
32 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 ...
0
votes
0answers
18 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
8 views

How to preload Vue async component with Sitecore JSS?

We are using Vue with Sitecore JSS and trying to do code splitting following the example for React (https://kamsar.net/index.php/2018/08/Code-splitting-with-Sitecore-JSS-React/) to improve our initial ...
0
votes
0answers
33 views

Error Rendering: Empty strings are not allowed. Parameter name: id

Running our Sitecore JSS site regularly produces following (cryptic) error: Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Empty strings are not allowed. ...
0
votes
1answer
51 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
12 views

How to reset a sitecore-jss form after the thank you message screen appears

Am using sitecore jss forms for creating a form and with the use of sitecore forms extensions package i was able to redirect the user to thank you page after the save data. The problem in here is ...
2
votes
1answer
38 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
2answers
51 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
1answer
26 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
0answers
15 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 ...
1
vote
1answer
25 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 ...
1
vote
1answer
22 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
2answers
35 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?
2
votes
1answer
70 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
1answer
68 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 ...
1
vote
0answers
19 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
1answer
43 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&amp;iar=0&amp;w=4554&amp;la=...
1
vote
0answers
32 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
1answer
59 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
0answers
141 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-...
0
votes
1answer
29 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 ...
0
votes
0answers
21 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
0answers
79 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 ...
1
vote
1answer
37 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
0answers
31 views

Jss deployment Error to remote instance

Trust you all are keeping well and safe. When I'm trying to deploy my application to a remote CM server. I am getting the below error. Sending package sitecore\package\sample-jss-app.1601553768244....
0
votes
0answers
27 views

JSS sitecore API verification throwing exception 403.0 - Sitecore.LayoutService module requires subscription license

I am trying to integrate my JSS app into Sitecore. I am following official JSS documentation but it throwing error on API verification HTTP Error 403.0 - Sitecore.LayoutService module requires ...
0
votes
1answer
45 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
1answer
32 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 ...
0
votes
0answers
29 views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process

We are trying to get Sitecore Experience Editor working in Integrated mode but facing below error.Have ensured node is installed and is in the PATH environment variable. Additionally, was trying to ...
1
vote
1answer
31 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
0answers
69 views

Embedded Sitecore JSS Application IE11 Issue

Our organization is using the base code as given in the below mentioned Github repository for client side embedding of the JSS react application in Sitecore 9:- https://github.com/Sitecore/jss/tree/...
0
votes
1answer
94 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)...
1
vote
0answers
51 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
0answers
112 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
0answers
71 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
1answer
104 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....
0
votes
0answers
10 views

Get First and Last Published dates on JSS app(Angular) [duplicate]

Recently started working on SitecoreJSS. Is it possible to save the first and last published dates of a page on JSS app(using Angular)?. Like this http://sitecoreskills.blogspot.com/2014/04/first-and-...

1
2 3 4 5
8