We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
1answer
36 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
29 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
91 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
69 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
59 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
64 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
31 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
93 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
36 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
131 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
64 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 }) =...
-1
votes
1answer
64 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?
1
vote
1answer
57 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
109 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
82 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
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
0answers
32 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
58 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
0answers
47 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
97 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 ...
1
vote
1answer
63 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
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 ...
0
votes
2answers
78 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....
3
votes
1answer
135 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
119 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 ...
1
vote
2answers
125 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
99 views

Publishing/Deploying React JS Sitecore JSS app

We are working on application using React JS for UI using Sitecore JSS. We are able to import the app into sitecore, could see content items created, published the website. We can run the app (hosted ...
0
votes
2answers
88 views

Which need to choose JSS Tracker vs Layout Service for Personalization?

As per link JSS Personalization, In a JSS site, there are several paths to collecting analytics like via JSS Tracker and Layout Service. Which one is better suite for this purpose?
1
vote
1answer
46 views

Sitecore JSS component datasource xPath query

I am having following content tree Sitecore Content myapp home -Products -Product-1 Related-Products-1 (based on Related-Products custom template) – having multi-list field in which we can ...
1
vote
1answer
209 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 ...
0
votes
1answer
117 views

Can we use helix principle into JSS application?

We can apply Helix principles for back-end(C# MVC) application for modular architecture. Can we use Helix principles for JSS application? Is it recommended to use Helix for front-end application(JSS)...
2
votes
1answer
84 views

Sitecore Remote Initial Setup Error: Could not find JSS app configuration

I'm following the guide to deploy jss components created locally with Vuejs into Sitecore. Everything seems to work except for the deployment part. The following is my setup file: "sitecore": { ...
0
votes
2answers
116 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
639 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
1answer
86 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 ...
0
votes
1answer
41 views

Why do I not see Create / Copy To links in the Experience Editor?

I want to be able to add a JSS component to a placeholder in the Experience Editor by creating a new content item, but after I select the rendering I do not see the Create or Copy To links. I am only ...
0
votes
1answer
186 views

Sitecore GraphQL Search query not working - Error trying to resolve search [duplicate]

I have the checked my instance and search query is enabled. I am getting the below error when i testing my search query in xGraph Browser Query query{ search(keyword:"smart"){ results{ ...
1
vote
2answers
63 views

How is deviceId determined for JSS pages

I'm looking at a JSS page in connected mode. I log the route to the console and note that there is a property, deviceId, which matches the device called Default. There are multiple devices in this ...
0
votes
0answers
86 views

How to get JSS Umbrella project running, I see its not getting the droptree values

Running node .\scripts\umbrella.js sync -c getting the following error C:\inetpub\wwwroot\JSS\umbrella-for-sitecore-jss-master\scripts\umbrella.js:137 else if (e[p]....
0
votes
1answer
49 views

Is there a way to deploy Sitecore JSS components from sitecore cms back to the jss app [duplicate]

"Jss deploy app" deploys the jss app to sitecore (including components, templates ..etc). Is there a way where I can deploy the components created in sitecore back to JSS app, that way I can view them ...
6
votes
1answer
157 views

Error in component using integrated GraphQL search query “Cannot read property search of undefined”

Component definition export default function (manifest) { manifest.addComponent({ name: 'Navigation', graphQLQuery: ` query NavigationQuery { search( fieldsEqual: [ ...
5
votes
1answer
151 views

On content delivery server, /-/jssmedia link breaks, /-/media link works

We have deployed a jss app to a Content Delivery server. We have followed instructions to add jss support to the server role. Links to media items generated by Image components begin with /-/...
8
votes
1answer
987 views

Cannot query field “search” on type “Query”

I would like to display in a view a list of items provided by a search on GraphQL query. Context: Sitecore 9.1 Jss 11.0.0 Jss application template : Angular Componant file heroes-connected....
4
votes
1answer
143 views

Graphql image size

I am implementing Sitecore jss on Sitecore version 9.1. I was wondering if there is a way to specify the image size (width/height) when querying using GraphQl. Below is my current query which is ...
0
votes
2answers
162 views

IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Message: AddFromTemplate - Add access required

Trying to import the sample jss app into the Sitecore 9.1, but getting the below error any idea why is this is ? IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Exception: Sitecore....
3
votes
1answer
119 views

Sitecore Layout Service is returning 400 Bad Request for JSS requests

I have followed all the steps in the JSS Server Setup guide: https://jss.sitecore.com/docs/getting-started/jss-server-install And I have followed all the steps in the Configuring the Sitecore server ...
0
votes
1answer
125 views

Define Multiple Layouts in JSS - Code First

We are implementing a website using JSS in Code First approach. There is a requirement to have two different layouts in the site, Layout1 - for all the pre-login pages Layout2 - for all post login ...
2
votes
1answer
32 views

Can you setup security trimming with code first JSS?

We want to restrict some pages that are behind a login on a JSS site. We use code-first development. Is is possible to setup the security in the /data/*.yml files? Or should we update the security ...
5
votes
1answer
110 views

Executing graphQL in disconnected mode

I am creating a JSS application in code first approach, so I always test the components in disconnected mode. As I have proper route files, all the pages are working as expected in the disconnected ...