Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

JSS Angular Router (8.2.8) on route change, the view doesn't scroll to the top in the new page

In Sitecore JSS Angular 8.2.8 when I navigate through the router on a scrolled page, the view doesn't scroll to the top in that new page. How do I force a scroll to the top when going through the ...
1
vote
1answer
25 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?
1
vote
1answer
20 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 @...
4
votes
2answers
450 views

In Sitecore JSS Multisite we will have an jss app for each Site?

We want to use Sitecore JSS (ReactBased) Framework with Sitecore 9.2 (Integrated mode). We will have 3 sites that are almost the same but they have their differences in components and content (they ...
0
votes
0answers
33 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
174 views

In JSS how do I support both secure and open GraphQL endpoints?

In my JSS application, how do I support both authenticated (logged in) GraphQL endpoints and in-secure (public/open) GraphQL endpoints? The example Angular application shows the usage of only one ...
0
votes
1answer
20 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 ...
7
votes
2answers
953 views

“Could not find JSS app configuration” error during JSS import

I'm attempting to import one of the JSS sample applications and I'm getting the following error after running the npm run package command: Fatal error occurred while running import process. Exception:...
0
votes
1answer
53 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 ...
0
votes
1answer
74 views

Deploy components into Common/ Shared folder

We are looking for some suggestion on the folder structure to make the components shared across multiple sites. At the moment if we deploy the components to sitecore, it’s getting created under the ...
0
votes
0answers
14 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
33 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 ...
0
votes
1answer
138 views

Sitecore JSS component invoking a web api

I had a react js application (http://localhost:3000) that invoked a web API (http://xyz) POST method. The way I accomplished that is - through the "proxy": "http://xyz" setting in ...
1
vote
2answers
224 views

After installation JSS 11.0.0 onto Sitecore 9.1, URL is not giving right response

I've installed JSS 11.0.0 onto Sitecore 9.1. URL:https://dev.sitecore.net/Downloads/Sitecore_JavaScript_Services/110/Sitecore_JavaScript_Services_1100.aspx I have added API key as mentioned here: ...
0
votes
1answer
105 views

Wildcards in Integrated Mode

I have a Sitecore site running: https://mysite.dev.local. The pages on this site have a JSS layout and JSON renderings on them. Navigation to a page (e.g. https://mysite.dev.local/foo/bar) would ...
1
vote
0answers
22 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
25 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....
1
vote
1answer
198 views

Memory leak in disconnected mode

I have a global footer referencing other items (yml files), which is referencing to the same footer, resulting in too big string to parse. This wasn't a problem in TP4, but I noticed that I get a ...
0
votes
2answers
115 views

Message: Failed to start Node process. To resolve this:

We have Sitecore 9.1.1 - JSS instance at my local machine. While opening page in the experience editor we are getting below error message: Exception: System.InvalidOperationException Message: Failed ...
0
votes
0answers
15 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
40 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 ...
0
votes
1answer
61 views

Node version issue in Multisite Sitecore jss application in Azure

I have 2 jss apps deployed to azure. Both are built on node 12.15.0 and I have WEBSITE_NODE_DEFAULT_VERSION as 12.15.0 in azure app settings but Only one of the apps is getting loaded at a time. For ...
0
votes
0answers
25 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 ...
6
votes
1answer
391 views

Adding component with inner placeholder breaks placeholder settings

I have component manifest.addComponent({ name: 'MyComponentWithPlaceholder', icon: SitecoreIcon.DocumentTag, fields: [ { name: 'heading', type: CommonFieldTypes.SingleLineText }, ], ...
2
votes
1answer
23 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
26 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/...
5
votes
4answers
456 views

Datasource Location not working as expected

I created a rendering for my form and linked the datasource location to sitecore/forms (which should be correct). The mysterious thing about this is that when I select my rendering in the experience ...
0
votes
1answer
55 views

Unable to get local issuer certificate with Sitecore JSS Create

I am trying to create JSS app locally however getting below error while running the Sitecore JSS creates command. Error:Unable to get local issuer certificate Command: jss create appname react I am ...
0
votes
1answer
44 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)...
0
votes
1answer
54 views

Unable to run jss build command on build server: 'jss' is not recognized as an internal or external command operable program or batch file

On my TeamCity build server I am attempting to run the jss build command in one of the build steps, but it fails with the error: 'jss' is not recognized as an internal or external command operable ...
0
votes
2answers
182 views

Unable to use Sitecore Forms with JSS

I have followed the Sitecore Forms + JSS integration official documentation here: https://jss.sitecore.com/docs/techniques/forms#sitecore-forms--jss . But I am unable to find the Sitecore Forms ...
0
votes
1answer
136 views

Manage security access for items with GraphQL

We noticed that there is no limitation on what data can be queried, all the data in GraphQL can be retrieved within the Sitecore instance. Any GraphQL request with the correct API Key can retrieve ...
1
vote
0answers
32 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
31 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
61 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
2answers
228 views

Read values from a drop down list

New to SitecoreJSS and Angular. Using Sitecore 9.0.1 and SitecoreJSS 11.0 (Angular) Created field - "HeadingBackgroundColor" type Droplist with data source pointing to different folder (I can ...
0
votes
1answer
198 views

403 Forbidden when trying to create a JSS app

I'm facing this issue when trying to create my first JSS react app. That's weird because I have other members on my team who are able to make it work even if we have pretty much the same setup (or at ...
0
votes
0answers
9 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
vote
1answer
200 views

How to render a component after a async request with React & Sitecore JSS?

I have a simple article page. I should have an infinite scroll implementation, meaning once a user has reached the bottom of the page, I should load the next article. How can I render a component ...
0
votes
1answer
55 views

Node module not fully loading into browser

I am building a custom component library using Stenciljs and webcomponents. I have published to an npm repo and was able to create an example create-react-app app using all of the components without ...
0
votes
1answer
67 views

How to make Material UI components editable in Sitecore JSS React App?

Since I am using Material UI in my Sitecore JSS app, I wanted to know how can I make Material UI components to make it editable for experience editor? For example: How to make the below Material UI ...
1
vote
1answer
57 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
2answers
68 views

SitecoreJSS deploy emptying field vales

Environment: Sitecore 9.0 update-1 SitecoreJSS 11.0.0 I created a sample SitecoreJSS app (using Angular), and created a new JSS component using jss scaffold <NewcomponentName>. I want to add ...
1
vote
0answers
115 views

Personalization is not working in Layout Service call?

I only installed Sitecore JavaScript Services Server for Sitecore 9.1.1 XP 11.1.0 rev. 190508.zip to check Layout Services and nothing else. My jss layout service is absolutely working fine with url ...
1
vote
2answers
64 views

Making Sitecorepath dynamic in Sitecore JSS

In Sitecore JSS, we are defining the app name, Sitecore path etc in the below section: <app name="GCP" sitecorePath="/sitecore/content/Home/JSS" appDatasourcesPath="/...
0
votes
1answer
74 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 ...
0
votes
1answer
13 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....
0
votes
1answer
165 views

JSS react app quick start disconnected mode gives “TypeError: Cannot read property 'sitecore' of null”

Newly created JSS app when started in the disconnected mode as below, tries to consume layout service and fails to load the page what could be causing this. tried creating fresh app multiple times, ...
0
votes
1answer
31 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\...
0
votes
0answers
35 views

How to resolve Custom Item Url - Buckets in jss headless mode

We have used Item resolver on httpRequestBegin to resolve the custom urls(bucket items) and its working fine in integrated mode. Now we are moving our site from integrated mode to headless mode and ...

1
2 3 4 5
8