A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
1answer
32 views

Cannot query field \“search\” on type \“Query\”

My question is based on already asked question and can be found here Sitecore Filtering by Field Value on Query of GraphQL This question is marked as answered by @jan-bluemink but I am facing the ...
0
votes
1answer
35 views

Get items from specific template from sitecore content tree in JSS

I am creating a left navigation component in sitecoreJSS (using Angular), for this I need to retrieve complete tree under specific node, and I created a left navigation template and inherited this ...
0
votes
0answers
9 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 ...
0
votes
0answers
20 views

Rendering Null Datasource In JSS Site

Some of my JSS components are throwing errors when trying to insert and edit them in the experience editor. Most of the errors come from the fact that the datasource hasn't been set yet. In MVC, I ...
0
votes
0answers
25 views

How to get child items from a DropTree (itemlink) path in JSS using React

Is there a way to get child items from a droptree (itemlink) path in JSS using React without using GraphQL? I see there are LayoutService but it only retrieves child from the contextItem or ...
0
votes
0answers
26 views

SItecore JSS + ReactJS + Material UI

I have a Sitecore JSS React app setup and using Material UI as the UI framework for styling and React components. I want to know how to get the Sitecore field value in a material-ui component OR if ...
0
votes
1answer
38 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 ...
2
votes
2answers
105 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
76 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
30 views

XP sample react app create failed using npm “jss create react-app react”

i am new to npm environments and sorry for english. When i try to setup a JSS server like mentioned here https://jss.sitecore.com/docs/getting-started/quick-start. Details: Sitecore version : 9.3, ...
3
votes
1answer
133 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
42 views

Using Layout Service with master db

We have a requirement to fetch the item fro the master db. JSS is always pointing to the web db. We tried to add the query parameter as sc_content=master in the Layout Service, but still the Layout ...
2
votes
1answer
114 views

Integrated GraphQL is not working correctly with JSS with SXA

I've been struggling for a few days to get JSS Integrated GraphQL running on an existing SXA project. To rule out any issues being introduced by this project, I decided to go right back to square one, ...
3
votes
2answers
105 views

Integrated GraphQL is not executed in Experience Editor

We use Sitecore 9.2, SXA 1.9 + JSS 12.0. As for the JSS, we are using Sitecore First approach. Some JSON renderings have integrated GraphQL queries. The Jss site was created trough JSS Tenant/JSS ...
0
votes
1answer
60 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 ...
2
votes
1answer
307 views

What are differences between server side rendering and client side rendering in JSS?

Please illuminate main differences between server side rendering and client side rendering for JSS app? Is server side rendering only required for things which are tightly couple with Sitecore like ...
2
votes
2answers
635 views

Share Sitecore content to Native Mobile Apps (IOS swift and Android java)

If we wanted to provide data (get/set operations on content tree, analytics, personalization, tracking data) from Sitecore 9 to native mobile apps (not based on Sitecore Mobile SDK and Xamarin but ...
2
votes
0answers
43 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&...
5
votes
3answers
430 views

The term 'jss' is not recognized while installing JSS

I'm trying to install JSS on a VM. When I run the install code, I get the following warnings: PS C:\dev> npm install -g @sitecore-jss/sitecore-jss-cli C:\Users\sitecore\AppData\Roaming\npm\jss -&...
0
votes
1answer
107 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
2
votes
2answers
478 views

Unexpected response from import service: Error: unable to get local issuer certificate

I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
1
vote
1answer
36 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: {...
1
vote
0answers
38 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
69 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
58 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 ...
1
vote
1answer
72 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 ...
2
votes
0answers
35 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 ...
0
votes
1answer
80 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, ...
1
vote
0answers
23 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 ...
2
votes
2answers
268 views

Angular Bundle size issue

To get a better understanding of the JSS library I ran the bundle analyzer on the Angular Sample project and I'm getting 169 modules on my main bundle. Does anybody knows where those 169 modules are ...
-1
votes
1answer
86 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 ...
0
votes
1answer
43 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
183 views

Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80

I am getting following error Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80 "while running this command " jss deploy app --includeContent --includeDictionary" ...
1
vote
0answers
51 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 ...
2
votes
1answer
70 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:\...
1
vote
1answer
328 views

Error on typings using JSS Text with Typescript

I'm getting an error on the fields property when using Typescript from this tutorial class Profile extends React.Component<Props, State> { constructor(props: any){ super(props); } ...
1
vote
0answers
47 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 ...
0
votes
0answers
51 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
1answer
83 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
0answers
24 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
64 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 ...
0
votes
1answer
110 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 ...
1
vote
2answers
164 views

Access Referenced Items using Integrated GraphQL

I am having following content tree: In GraphQL (GQL), if I am rendering Product-1 (current context item) and wanted to access all the categories where Product-1 referenced in the multi-list field of ...
0
votes
1answer
84 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 ...
5
votes
1answer
96 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
0answers
68 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
125 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
1answer
39 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
1answer
45 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 ...