Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

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

Triggering goals in a GraphQL endpoint

During a GraphQL query, the Tracker is inactive, maybe because of this processor: DisableGraphQLRequestTracking in the startAnalytics pipeline. We'd like to know if we can trigger goals from a ...
1
vote
2answers
60 views

Droplist item returns name instead of “display name” for the component

I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/...
1
vote
0answers
26 views

Sitecore 9.2 JSS with Solr 7.5 , JSS route items and its subitems are not indexing

Currently we are developing Sitecore JSS app with React frontend. in this we are using Headless SSR mode to create the content in sitecore and rendering. our application is working fine with React, ...
2
votes
1answer
3k views

SSR issue: window not defined

We are using react as client framework for building a SPA. In disconnected mode it works well but then in integrated mode I see the below error when we browse the page or preview it. Any clue as to ...
0
votes
0answers
61 views

Why is jss app being server rendered when not in edit mode?

I was under the impression that when viewing a sitecore site locally it would render on the client if not being viewed in the experience editor. I'm trying to read/write from a cookie in one of my ...
1
vote
2answers
130 views

Image in rendering parameters to display background picture

Here is what I'm trying to achieve : I have a component that has a parameter backgroundImage. This parameter was previously a field and I achieved what I wanted without any problem but in order to ...
0
votes
1answer
61 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 ...
1
vote
0answers
41 views

How do I get my SSR proxy to site resolve the LayoutService for my JSS/SXA Site?

We're on Sitecore 9.2, SXA 1.9, JSS 12. previously On 9.1, we had the following setup: JSS App sitting in /sitecore/content/myapp A site definition that mapped a hostName to our /myapp A JSS ...
1
vote
1answer
96 views

What is the cause of the error - Rendering ID was not present in the rendered renderings context?

I am getting a strange error when deploying a JSS application to Sitecore and running in Integrated mode. Rendering data contained rendering reference ID 6cc52330-7130-49a8-9585-5b9b8d946847 but ...
1
vote
1answer
71 views

GraphQL Filter on PageType

I have been successfully using GraphQL to filter on items assigned to a specific template. Is it possible to do the same with items of a certain PageType?
0
votes
1answer
66 views

JSS Tracking API example fetch errors

I am trying to use the JSS Tracking API, according to https://jss.sitecore.com/docs/fundamentals/services/tracking, with Sitecore XP 9.1. Following the example code: import { trackingApi } from '@...
3
votes
1answer
40 views

“Could not find JSS app configuration” when deploying JSS app into JSS-SXA Site

In a JSS with SXA instance... Create JSS Tenant Create JSS Site Attempt to import JSS app using jss deploy app -c Error Unexpected response from import service: Status message: Bad Request Body: ...
4
votes
1answer
92 views

Nesting placeholders in Standard Values

I know (and I do it) that I can put a default value in a placeholder so that when I create a new item for my route type it populates my placeholder with a component that I will choose. I do it like ...
1
vote
0answers
56 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?...
1
vote
0answers
64 views

How to get Item from ItemID in JSS? [closed]

I am trying to understand how to fetch Item from ItemID in JSS. What is alternative for Sitecore.Context.Database.GetItem(new ID("{11111111-1111-1111-1111-111111111111}")) in JSS?
1
vote
1answer
61 views

Adding new components/content to existing application

I'm still pretty new to JSS/Sitecore and am trying to wrap my head around some of the concepts. One thing I don't understand is if its possible to create new layouts/templates on an existing app and ...
0
votes
1answer
44 views

Can I set a custom NPM repository to be used by JSS?

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my ...
0
votes
0answers
56 views

Sitecore Hybrid solution with MVC and React js [duplicate]

We recently upgraded to Sitecore 9.1 from 8.1. We have an MVC application. We would eventually like to get into the Sitecore headless mode. But since rewriting the whole application is not an option, ...
0
votes
1answer
40 views

JSS connected mode enters experience editor mode

When I'm working with the local web server (jss start:connected) and at the same time I log into the actual instance of sitecore (dev.test.com) and go to the experience editor. The local version get's ...
5
votes
2answers
655 views

Headless CMS : Sitecore vs Contentful

We are currently using Sitecore for one project but did not use JSS anywhere. Other project team plans to use headless CMS and considering "Contentful" CMS for this. Could anyone please explain the ...
-1
votes
1answer
88 views

JSS layout service not working with Sitecore Commerce 9.1

I have SXM 9.1 and Sitecore XC 9.1 installed. Our requirement is to create SXC website headless. So I installed Sitecore JSS (Sitecore JavaScript Services 11.1.0) but while installing it asked to ...
0
votes
0answers
31 views

How to make experience editor editable If List of data inside the map

I am retrieving the date from the service and I am mapping and displaying the details of what service gives in that what are the common text details which need to come from Sitecore it displays it's ...
1
vote
1answer
39 views

Define a content list and populate it

I'd like to define a field in a component that would display a set of values that my contributors could choose when using my component. Let's say that my field is a ratio, I want the users to be able ...
2
votes
0answers
47 views

Error when personalizing JSS renderings

I'm getting the following error when I try to personalize a JSS component that was deployed into a JSS tenant on 9.2: > Cannot read property 'image' of undefined TypeError: Cannot read property '...
-1
votes
2answers
141 views

Maintain sitecore items in repository in jss sitecore first approach like Unicorn, Jss-cli OR TDS

Hi I am using Sitecore jss with sitecore first approach. My sample solution is under here sitecore.first-jss-helix.git. Currently i am maintaining in repository all my sitecore related content items ...
0
votes
1answer
31 views

Access Denied when using Mutation to create Item JSS Graphql

I created a form that when a user submit, values on that form will be created as field values of a new Sitecore Item. However, I encountered an error response from the GraphQL execution of Access ...
-1
votes
1answer
73 views

Sitecore JSS how to get media library item directly

In Sitecore JSS, how can we refer a media item in the front end?(image ,pdf file etc) Can we use Layout Service? Any other way?
0
votes
2answers
104 views

Sitecore API key shown in Network tab

As you can see in the image above, the API key is clearly visible to all people to see. If you simply follow the URL you get the message: { "errors": [ { "message": "No query ...
1
vote
2answers
374 views

Sitecore JSS installation error

I am getting the below error once I installed the Sitecore JSS server packages Preview 4. I have follwed the same steps mentioned in https://jss.sitecore.net/docs/getting-started/jss-server-install ...
1
vote
0answers
46 views

JSS Headless mode issue

I am trying to run my local jss app in headless mode. while trying to hit the jss service, I am not getting the expected o\p. I can the security info object has 401 as statuscode. If I try hitting ...
1
vote
1answer
68 views

Using JSS Sitecore 9.1 with scaled architecture

I have installed Sitecore 9.1 XP scaled(XP1) topology so I have sitecore.cm ,sitecore.cd and other app roles installed (REP, PRC, etc). I have configured JSS and am able to use it with sitecore.cm . ...
0
votes
0answers
32 views

ng-select module does not work for child component in jss angular

We added ng-select module in app.module it is working for root level not for child component in Angular JSS, can someone guide where to add ng-select and other angular module?
0
votes
0answers
167 views

Cannot read property 'datasource' of undefined at GraphQLIntegratedDemo

I create Sample Sitecore JSS React application and all pages are working fine except GraphQL. When I run GraphQL link, I am getting below error On Reload the page I am getting error I run below ...
4
votes
1answer
106 views

Sitecore license for JSS

I have to do a POC in Sitecore JSS. I understand Sitecore 8.2 license can be used with Sitecore 9.1 but I need to know if I can work with JSS using my existing Sitecore 8.2 license?
0
votes
0answers
37 views

Routing with JSS and Vue

So i have assets, such as fonts icons etc, in my vue public folder. In disconnected mode everything renders completely fine. However if I deploy my Vue JSS app all my assets return a 404. This is of ...
2
votes
2answers
150 views

Issue with child placeholder in Sitecore-first approach

I am following sitecore-first approach and I have created two simple renderings. Scaffold rendering import React from 'react'; import { Placeholder } from '@sitecore-jss/sitecore-jss-react'; const ...
0
votes
0answers
71 views

Image field is not rendering in sitecore jss

I'm trying to render image field in Sitecore JSS as below. import React from 'react'; import { Text, Link, Image, RichText } from '@sitecore-jss/sitecore-jss-react'; const HeroBanner = ({ fields }) =...
0
votes
1answer
60 views

graphql is emtpy when using integrated mode

I have a GraphQL to fill in my menu. When I use jss start:connected it works just fine, but when I deploy (jss deploy app) and get it from the server it's empty. I have been digging a bit into what'...
1
vote
1answer
72 views

How do I enable .babelrc for JSS

Coming from C#, I really like the below code var prop = item.prop?.propname Syntax. This is supported in JS if you use the below code @babel/plugin-proposal-optional-chaining Babel plugin. ...
0
votes
1answer
122 views

404 Error on Import Service

I've set up a blank Sitecore 9.1.1 XP instance and tried to get JSS up and running. I've installed the Sitecore JavaScript Services Server for Sitecore 9.1.1 XP package and 11.0.2 sitecore-jss-cli. I'...
0
votes
1answer
87 views

What is this error in the Sitecore error logs?

On a Sitecore 9.1 Initial Release site with JSS (Angular JS), we are noticing a large number of these errors in the Sitecore logs: 15888 15:09:55 ERROR ERROR [Error] This is the entire error message,...
0
votes
0answers
35 views

JSS Importer returns an error when RenderingParameterDefinition used to define Param fields

UPDATE: This issue actually occurs when I have used RenderingParameterDefinition way of defining Params instead of just using String. Ex: params: [ { name: 'bgColor', displayName: "Small", ...
0
votes
1answer
26 views

JSS Importer doesn't import Param Checkbox field with true correctly into Sitecore Content Editor Properties Popup Window

I have defined a Param fields for JSS component as below and set its value to "true" on the route file. But when imported into Sitecore, in the presentation details of the component doesn't show this ...
0
votes
1answer
765 views

Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/

I have an error when running in connected mode (jss start:connected) [HPM] Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/xlbygg/data/media/img/sc_logo.ashx from localhost:...
1
vote
0answers
48 views

What is the best way to flatten structure

I have a structure where directly below the /home node I wish to have all the stores. Each store should have information like opening hours and address. This data was created as a component. This ...
1
vote
0answers
107 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
2answers
93 views

Exception thrown while importing JSS app args.App.ImportUser is null or empty

I deploy with this command: jss deploy app --includeContent --includeDictionary When I do I get the following error: Exception thrown while importing JSS app Exception: System....
0
votes
0answers
56 views

Create user registration using JSS

I am looking to create a user registration page using Sitecore JSS and react. The page can fields like First Name, Last Name, email address etc.. Once submit button is clicked that user should get ...
3
votes
1answer
159 views

500 Error Page for HTTPS connection in Sitecore JSS in Connected Mode

I'm trying to implement user authentication login and currently trying out to configure JSS connected mode to work with https (secure connection). Following https://jss.sitecore.com/docs/techniques/...
3
votes
2answers
138 views

Is Universal Tracker replacement for Sitecore.Analytics.Tracker or should they be used together?

I am trying to implement simle react app (non JSS) that uses Sitecore headless services. I want to have online personalization, let's say when goal is triggered during current interaction to show the ...