Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
2
votes
0answers
37 views

Images are broken on Safari Browser [closed]

I'm using Sitecore 9.1, JSS and ReactJS. Some of the images are not showing on Safari but working fine on Chrome. Here's a sample url: /-/media/Intelligence-Bank/Folder/Folder/Logo/Logo.png?h=422&...
1
vote
0answers
33 views

No application configuration file found

We have deployed our Sitecore JSS Application to the CM and CD Server (Azure VM). The site is up and running but some js and css files in root/dist/$name folder are throwing 500 Internal Server Error. ...
4
votes
2answers
58 views

JSS layout service, how to restrict public access

I want to secure my Sitecore JSS LayoutService in such a way that only the client application (i.e. react app) can access my LayoutService API. Please note, I am not taking about the login/logout ...
2
votes
0answers
36 views

jss build does not change hash on files when outputHashing is set to all

We are now going to production and are noticing the jss build and jss deploy files are not updating the hash on the file names when the content changes. This is causing cache busting to not work and ...
2
votes
0answers
29 views

Method not found: 'Sitecore.JavaScriptServices.ViewEngine.Pipelines.GetRenderEngineFactory.GetRenderEngineFactoryArgs.get_RenderEngineType()

I am working on Sitecore JSS and created a sample application. When I am trying access with the new hostname, configured in the app patch file, I got below error. 35472 12:00:27 ERROR Failed to ...
1
vote
1answer
60 views

Could not load file or assembly 'System.Web.Helpers…` when loading JavaScript files [closed]

We have deployed Sitecore 9.2 with JSS on a production environment and when accessing page, page gets loaded but in the network tab, we see none of the js file gets loaded. it throws 500 error. When ...
1
vote
0answers
21 views

Analytics ID has been flagged as robot traffic even when AutoDetectBots is set to false for Layout Service call?

I am using Layout Services API call to get data from Sitecore. Layout Service API is working fine and i am getting a response back in json format. My xDB is enabled and working fine for other ...
-1
votes
1answer
57 views

Performance Issue JSS+React

I'm having a performance issue, the loading speed is quite long. I also noticed that when I first load the page, there is some plain text showing while loading before the page completely loaded and ...
1
vote
0answers
47 views

Accessing an Image SRC from code

I'm working on a Sitecore JSS site, Angular framework, disconnected mode. I'm trying to access the SRC attribute of an image field in my components ngOnInit method. Stepping through the code, it ...
1
vote
0answers
24 views

Getting 404 not found error with Sitecore.HabitatHome.Omni on http://habitatfitness.dev.local/sitecore/api/habitatfitness/sports/facet?sc_apikey={key}

I was doing some research on Sitecore.HabitatHome.Omni. It is working fine at my local instance but getting an error while setting up personalization. I got a 404 status code while submitting the form ...
1
vote
0answers
44 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 ...
2
votes
1answer
45 views

While opening the jss app item in experience editor getting Error: EPERM: operation not permitted, lstat

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: EPERM: operation not permitted, lstat 'D:\sitecore' Error: EPERM: operation not permitted, lstat 'D:\...
0
votes
0answers
39 views

Push notifications in Sitecore 9.2 and JSS

I'm using sitecore 9.2 with JSS and Azure search. I am searching for an out of the box way to push notifications to sitecore users. I found this link talking about notification center but I think it'...
0
votes
0answers
18 views

HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP'

I'm getting HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP' for below piece of code and patch file. can anyone help on this please. Code: namespace ...
0
votes
2answers
48 views

How tracking works for Layout service used for Mobile apps (API-Only Mode)?

I'm new to JSS, I need to use JSS Layout service to send personalized content to a Mobile App(API-Only Mode). From Jss Documentation Via Layout Service Layout Service requests are tracked on ...
1
vote
1answer
28 views

Get the item from a ReferenceField type in Sitecore JSS based on Langauge version

I am working on a multi-lingual site where the data source has multiple language versions. I want to retrieve the items of multilist based on the language parameter passed. Sitecore GraphQL query: {...
0
votes
1answer
55 views

Experience Editor error when adding element to placeholder in a JSS component that doesn't by default render its placeholder

I'm using sitecore JSS, I have a component with a placeholder and I am trying to add a child component into that placeholder. I'm getting an unhelpful popup error saying An error occurred and then in ...
0
votes
1answer
53 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
73 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
38 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?
0
votes
1answer
86 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
55 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
42 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
88 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
40 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
83 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
39 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
101 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
51 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
85 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
57 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
106 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
39 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
55 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
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
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, ...
0
votes
1answer
36 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
60 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
56 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
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 ...
2
votes
1answer
74 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
63 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
50 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
36 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 ...
3
votes
1answer
38 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
130 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
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?...
4
votes
1answer
90 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
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 ...