Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
1answer
31 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, ...
5
votes
1answer
43 views

How to generate Sitecore Media Handler Hash?

How can I generate Sitecore Media Handler Hash to append it to URL in JSS? I'm trying to resize the image on the fly but image URL query string like /blah/blah/myimagename.jpg?w=548&h=202 ...
0
votes
1answer
21 views

What are naming considerations should follow for placeholder in any JSS app?

I am going to develop one JSS app in Sitecore. Before starting, what are best practices must follow? What are naming considerations should follow for placeholder in any JSS app?
3
votes
1answer
39 views

Sitecore JSS Learning

I have started with Sitecore JSS. I am able to find ample content on the internet on working with JSS with code-first approach especially for disconnected and connected modes. But not much on ...
0
votes
1answer
51 views

Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel when deploying the JSS site

This is the command : jss deploy app -c -d, I am deploying the newly created jss site in to Sitecore 9.2 Error: Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel
0
votes
0answers
32 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
0
votes
1answer
36 views

Is it possible to modify jss deploy template

We have stopped using code first jss. But we would still like to have commands like jss deploy template / jss deploy component. Unfortunately, these commands do stuff we don't want them to do, like ...
2
votes
1answer
62 views

How can I get the current URL in the SSR of a page

In my layout.js file, I get the current URL of the page with this code: url: typeof window !== 'undefined' ? window.location.href : '', On first request of this page from the server, the url is set ...
0
votes
1answer
36 views

Setting datasourceStrategy as preferAppLevel is not taking into consideration

My understanding is that if we set datasourceStrategy="preferAppLevel" when we open a route with Sitecore Experience Editor and we want to add a component the data source location should be in ...
4
votes
1answer
60 views

JSS layout api returns 404 when item requested by display name

We are trying to use display names for URLs and it doesn't work with JSS. E.g. we have a page "search" which has a display name in NL: zoeken. when I request http://localhost:3000/en/search , the JSS ...
4
votes
1answer
34 views

Not able to create API keys for JSS App in core database - Sitecore 9.1 and JSS

I am playing around with JSS App with Sitecore 9.1.0 (rev. 001564). I have followed the youtube video for Build Your First JSS App and I have been stuck at one point where I need to create the API ...
1
vote
0answers
54 views

Unhandled Rejection (TypeError): Cannot read property 'sitecore' of null

I ran the command jss start:react , getting the error. Error occured while trying to proxy to: localhost:3000/sitecore/api/jss/dictionary/myjssapp/en?sc_apikey=no-api-key-set. I am working on a ...
1
vote
1answer
34 views

GraphQL datasource is empty with Integrated JSS App

I have a query that is working in the GraphiQL UI : query GetBreadcrumb($datasource: String!) { datasource(value: $datasource) { ...mySelectedFields parent { ...mySelectedFields ...
0
votes
1answer
51 views

After installation Sitecore 9.2 with SXA not able to create JSS Tenant and site

I have installed Sitecore 9.2 with supported SXA on my local environment, but not able to create JSS Tenant as describe in Sitecore help document. When we logged-in sitecore I can see the only Tenant ...
4
votes
1answer
44 views

GraphQL Search facetOn Parameter

I'm trying to use the Sitecore GraphQL search function that takes in the "facetOn" parameter. Unfortunately I'm not having much luck with the results, and I suspect it's because I'm doing something ...
4
votes
1answer
65 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
34 views

Can author edit the layout with single page application with JSS and Sitecore?

Let's say I use JSS components and create the pages on the SPA frontend. There is the option to connect the frontend application with the backend. This allows authors to edit content via the ...
0
votes
1answer
28 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
0answers
28 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 ...
0
votes
0answers
23 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, ...
0
votes
1answer
33 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
45 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
43 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
31 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 ...
2
votes
1answer
61 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
41 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 '@...
0
votes
1answer
45 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 the package.json of ...
2
votes
1answer
33 views

JSS translations not working in integrated mode

I am using Sitecore XP 9.1 with JSS, and performed the default JSS scaffolding setup. Translations are working in disconnected mode, but when I switch to integrated mode the translated page is not ...
2
votes
1answer
28 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: ...
0
votes
1answer
112 views

Code structure in Multisites Scenario

We want to use Sitecore JSS (ReactBased) Framework with Sitecore 9.2 (Integrated mode. We have multisite environment where each site is subset of Global Site. It means templates/rendering created in ...
1
vote
0answers
43 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?...
4
votes
1answer
75 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
1answer
53 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
34 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
37 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 ...
0
votes
1answer
48 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
2answers
98 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
0answers
30 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
votes
1answer
73 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 ...
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
vote
1answer
32 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 ...
0
votes
1answer
26 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 ...
0
votes
2answers
75 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 ...
0
votes
1answer
60 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
1
vote
0answers
56 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
0answers
45 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
58 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
0answers
30 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?
4
votes
1answer
83 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?