Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

1
vote
1answer
21 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
45 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
32 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)...
0
votes
0answers
16 views

Fields on the app-route does not load media items

I have a YML file that contains the following: id: home-page # Route-level fields are appropriate for page level data like <title> contents # Define route level fields in /sitecore/...
2
votes
1answer
22 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
37 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
67 views

Logged-in User Personalization including Virtual user and Sitecore Contact using Sitecore JSS

I am having requirement to show personalized content for Logged-in user (external system) which have default persona attached to user profile and after logged-in need to show personalized content on ...
0
votes
0answers
31 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:...
0
votes
0answers
41 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
28 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
37 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
46 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
59 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
33 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
55 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: [ ...
4
votes
1answer
58 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
145 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
70 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
51 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
33 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
54 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
28 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
64 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 ...
0
votes
1answer
54 views

How does one convert Sitecore JSS React boilerplate to typescript?

Is there a guide of some kind or possibly some helpful information floating around regarding the addition of typescript in a Sitecore JSS react boilerplate project? So far I've only been able to get ...
4
votes
1answer
40 views

In JSS Integrated Mode, how can I log errors / console output from Node to a custom logger instead of the Sitecore log?

By default, the JSS Node.js rendering engine captures console output / errors emitted by the Node instance(s) rendering your JSS app and logs the output / errors to the default Sitecore log. I would ...
7
votes
2answers
86 views

How to turn off “JSS Development Workflow”?

We recently switched from code-first to Sitecore-first in our JSS project. In the Sitecore-first approach we now use Unicorn to serialize/sync Sitecore structure and content. However the JSS ...
1
vote
1answer
59 views

Is graphQL data editable through Experience Editor

We are working in JSS integrated mode, in one of the page we need to retrieve the child items from a folder and render them. As we are implementing the site in integrated mode, we expect the features ...
1
vote
1answer
94 views

Define NameValue List in JSS

I am just trying to define NameValueList in one of my JSS component. Looks like there are only defined set of fields available in CommonFieldTypes [@sitecore-jss/sitecore-jss-manifest]. Is there a way ...
1
vote
1answer
41 views

Adding footnote component/syntax to jss content field? [closed]

I'm looking for a way to allow content editors to add legal footnotes/disclosures within inline content. My initial thought was to instruct them to use some sort of syntax, such as [[disclosure=12.34]]...
0
votes
1answer
101 views

Search query error “Cannot query field \”search\“ on type \”Query\"

I'm trying to get data using GraphQL query with using search and get it when testing at /sitecore/api/graph/items/master/ui window - search really work, but when I look at the React component data ...
0
votes
0answers
57 views

Fetching Placeholder data using GraphQL | Jss

I am able fetch datasource data and Context Item data using graphQL query. I want to fetch placeholder's data of that rendering. My query is like: query IntegratedDemoQuery($datasource: String!, $...
1
vote
1answer
54 views

Are individual yml files needed for each component param option?

As an example, I'll use a generic content Block component. This component, among other params, would have a columnSpan param. As far as I can tell, the only way to predefine options for that param is ...
0
votes
1answer
47 views

JSS Import renderings into Shared Layout on Presentation Details

When importing a Sitecore JSS App, we noticed that the default behavior is the renderings are added in the Final Layout in the Presentation Details in the item. Is there a way to change the default ...
1
vote
1answer
88 views

Fetching Multiple Item Data using GraphQL

I want to fetch multiple item data using single query. I am able to fetch the data of single item. My tree structure is like: Item1: Title Description Item2: Title Description ...
2
votes
1answer
84 views

404/500 error page implementation - ReactJS client

We are working on Sitecore JSS with react js client side. We need to implement 404 and 500 error pages in Sitecore JSS application. There may be chances of adding multiple Sitecore JSS sites. How ...
1
vote
1answer
78 views

How to get Standardvalues from Sitecore GraphQL

I am trying to get the sortorder value from Sitecore GraphQL and it is not recognizing the field. Any config needs to be updated ? Am i missing some thing here?
0
votes
0answers
77 views

Cannot read property 'value' of undefined at GraphQlElements

I am Using Connected GraphQL query to fetch the data of the item. It works fine in the GraphQL editor. But I created a component called GraphQLDemo and used the that query and fetched the data and ...
1
vote
1answer
41 views

Can Sitecore JavaScript Services (JSS) be used with a Sitecore Experience Manager (XM) configuration?

Does Sitecore JavaScript Services (JSS) require Sitecore Experience Platform (XP) or can it be used with a Sitecore Experience Manager (XM) configuration?
0
votes
2answers
73 views

GraphQL Authentication

I have create react component of connected GraphQL. It's giving me proper data. I have created user and assign roles and giving permission for the root. I want to pass his credentials with that query ...
1
vote
1answer
54 views

Fetching data using GhraphQL Query Api mode

I have setup the sitecore Jss react app to my sitecore instance. I am using layout service api to get the data in JSON form. It is giving data properly. When I am using GhraphQL Query to fetch the of ...
0
votes
1answer
61 views

CORS and Media Library Resources

I have a Lottie animation JSON object that I want to use in all my various JSS Angular apps hosted from different domains. Ideally, I'd have that animation file in the Media Library so it can be ...
0
votes
1answer
32 views

Getting a blank page after deploying JSS-React application on server (Tech preview 4)

I am Getting a blank page after deploying JSS-React application on server (Tech preview 4) with two console warning 1) Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www....
1
vote
1answer
89 views

JSS Setup script failing with: Assertion `args[1]->IsInt32()' failed

Following the JSS quick start instructions I do: npm install -g @sitecore-jss/sitecore-jss-cli jss create my-first-jss-app react cd my-first-jss-app jss start Next step I go to is to run JSS Setup ...
1
vote
1answer
78 views

JSS sitecore multiple projects under same solution

Hi i am following Helix principle in JSS sitecore first approach. I am new to react. I need to have a multiple projects under same solution setup. Here my solution sample. SafariZoo is my project ...
1
vote
2answers
44 views

Sitecore jss dictionary service returns the same values

Sitecore jss dictionary service returns the same values. In one moment dictionary contained one values and after change config to get that dictionary values not from default dictionary, i get them but ...
0
votes
2answers
56 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
3answers
61 views

Sitecore JSS does not deliver dictionary entries from pathes specified in config files

Sitecore JSS does not deliver dictionary entries from pathes specified in config files. https://xxx.local/sitecore/api/jss/dictionary/xxx/en?sc_apikey={6B8DB342-F35D-481F-8C16-87B7319B6F6E} returns ...
0
votes
1answer
125 views

How to Render Images in sitecore jss Component?

I am new to sitecore JSS as I followed the Official sitecore documents and created an app and then Scaffold one component to this app and also rendered Few single line and rich text Fields but i am ...
4
votes
0answers
137 views

Adding component with inner placeholder breaks placeholder settings

I have component manifest.addComponent({ name: 'MyComponentWithPlaceholder', icon: SitecoreIcon.DocumentTag, fields: [ { name: 'heading', type: CommonFieldTypes.SingleLineText }, ], ...
0
votes
0answers
84 views

Reading image in React app component

I have created one sample app in disconnected mode. Inside that, I have created 1 image component. It works fine in disconnected mode but when I deploy it, to my sitecore instance then it will give an ...