Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
40 views

Wrong GraphQL response in Integrated Mode using GraphQLData

I created a simple GraphQL query to test it out: query FooterQuery($datasource: String!, $contextItem: String!) { datasource(value: $datasource) { id name } testItem: item(path: "/...
0
votes
1answer
28 views

How to mock Sitecore Context Data in LayoutService for JSS disconnected mode?

Where can I usually mock (for JSS disconnected mode) additional layout service data that I put into the layoutservice response by a "JssGetLayoutServiceContextProcessor". So if I add additional ...
2
votes
1answer
22 views

Deploy Sitecore Jss React App to Azure Content Delivery

I tried to deploy my JSS React App to Azure scaled CD. I got my Jss App deployed to Azure CM successfully and it's working as expected. Steps to deploy to Azure CD The Azure scaled CD was setup by ...
0
votes
0answers
32 views

JSS React app deployment error - System cannot find the file specified

I am trying to install a new JSS app into my existing Sitecore 9.2 instance. I created the app using the React boilerplate, everything is working and it runs with jss start just fine. I used jss setup ...
-1
votes
1answer
33 views

How to extend Manifest file

I have created a solution for package importing POC in my local. So, I was following the steps at Import Pipeline Extension I have projects structure like in screenshot: But, I am not sure about ...
2
votes
2answers
24 views

JSS Default Angular App Build Error: Cannot find name 'Exclude'

Install JSS: npm install -g @sitecore-jss/sitecore-jss-cli create default react app - runs in Chrome: jss create jss-react-app react cd jss-react-app jss start create default ...
7
votes
2answers
106 views

What is alternative of “.PageMode.IsExperienceEditor” property in JSS-react?

What is alternative of .PageMode.IsExperienceEditor property of Sitecore.Context in JSS-react to verify the ExperienceEditor context ?
4
votes
1answer
37 views

Sitecore Experience Accelerator (SXA) site won't render as a sub route where JSS app is the root app

We have a JSS app as our site root (e.g., mydomain.com/ renders my JSS app) and want a Sitecore Experience Accelerator (SXA) website as a sub-route of the same domain (e.g., mydomain.com/sxa-site). ...
2
votes
2answers
65 views

Embed a Sitecore JSS app/component within an existing non-Sitecore website

Could you let me know please if there is a possibility to embed a Sitecore JSS app/component in an existing non-Sitecore website? To be more explicit our client has multiple external non-Sitecore ...
3
votes
1answer
50 views

Remove and/or rename fields in Sitecore JSS via template definitions

Is there is way to remove or rename a field in Sitecore JSS via template definitions? Even with an ID on the field, it won't rename. Deleting the field object will not delete the field in Sitecore. ...
0
votes
2answers
38 views

Error loading site in connected mode: Unknown type GraphQLConnectedDemo

Following the tutorial everything is looking good. The app deploys with no errors using jss deploy app --includeContent --includeDictionary. I can see the content in Sitecore so thats all good. ...
1
vote
1answer
52 views

JSS LayoutService decoupled from Routing in Angular

Is it possible to decouple the use of the LayoutService from all of the Routing code and use it independently? We are upgrading an AngularJS application to Angular and have incorporated JSS but are ...
5
votes
1answer
60 views

JSS, is there a way to create custom types?

I am totally new to Sitecore, and a front-end developer, so please bear with me. I'm on a project that is prototyped using JSS and for some of our components we'd like to define custom types like: "...
1
vote
1answer
43 views

API mode can be implemented with the Plain react application

Can we implement the API only mode in JSS with a plain react application.? or do we need to have react app created through the JSS. Also trying to see a sample app or steps to do the API only mode ...
1
vote
1answer
35 views

Write acces blocked by Sitecore JSS workflow

I have an issue that I cannot fix atm. We created a new Security role and assigned rights to it. However Content Editors that have this role cannot edit any items as the JSS Workflow currently ...
2
votes
1answer
65 views

Getting the URL from items in a ContentList field

What is the best way to get the url for each item added to a ContentList field? Right now, I only get fields and id.
2
votes
2answers
53 views

How to include editable component data into static non-Sitecore component?

I have a footer that I want to include by default into the layout rather than be injected as a Sitecore component by a content editor. The footer data, however, should be editable and translatable. Is ...
5
votes
1answer
89 views

Code first Rendering Parameter templates

What is the best way (if any) to add a rendering parameter template to a rendering using JSS? I have looked at some of the import processors, but can’t find a simple way of doing this from javascript.
3
votes
1answer
73 views

JSS Layout Service and Personalization

When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a ...
-1
votes
1answer
48 views

JSS SSR headless mode vs api only for personalization

Are there in any difference in personalization usage when using JSS SSR headless mode vs jss api only mode (with layout services where can use personalization). We are in process of getting jss ...
-1
votes
2answers
67 views

Sitecore JSS with headless mode can be hosted in AWS

If using sitecore JSS App with Headless SSR via sitecore-jss-proxy, can the Node.js app be hosted on AWS server? Note did mention below, but not clear about AWS. I understand Sitecore install have ...
0
votes
1answer
45 views

Does anyone know, if Sitecore-JSS-React application supported in Service Fabric cluster

I am trying to deploy JSS-React app in Service Fabric cluster, does anyone know if - Sitecore-JSS application supported in Service Fabric? - Can I create .net Core application for this?
0
votes
1answer
65 views

Sitecore JSS error when creating quick start app with Vue template

I'm trying to create a disconnected JSS vue app using the quick start guide, by running the following commands: npm install -g @sitecore-jss/sitecore-jss-cli jss create jss-app-vue vue cd jss-app-vue ...
2
votes
1answer
29 views

Changing The Layout Service Response Outside The Json Of A Rendering

For an application I want to remove some levels of data from what jss's layout service returns. My end goal is to have an api endpoint that returns fields on the content items and fields on ...
0
votes
1answer
42 views

Inline style React components not working

Is there any way to use inline style for the JSS React components? I have tried: const inlineStyle = { width: '100%' } const Example = () => <Image style={ inlineStyle } /> But the ...
0
votes
2answers
54 views

JSS Vue - getting error in server.bundle on deploy

This is a similar issue to this one: JSS vue - Error with server.bundle.js after jss deploy package But unfortunately I can't comment on that one because my rep is not high enough. I believe the ...
0
votes
1answer
48 views

JSS Vue page transitions not fully working in example project

It seems like the router setup for the JSS Vue example may be preventing the transitions that are built into Vue Router from properly running. Specifically I am having issues with the leave animation....
2
votes
1answer
52 views

The current user does not have write access to this item. User: sitecore\JssImport,

I am trying to setup the Sitecore JSS,getting error when executing the command. jss deploy app --includeContent --includeDictionary Skipping data update of /sitecore/content because item already ...
0
votes
1answer
77 views

Sitecore JSS for existing Sitecore site

The question may be very basic, but for better understanding about JSS i am asking this. The question is, can we use JSS for existing site created with traditional Sitecore MVC? Because I am not ...
0
votes
1answer
47 views

Nested Components Scaffolding

I'm currently setting up a new JSS project using the JSS React boilerplate and I ran into an issue regarding the scaffolding of components. When using the scaffolding script I can use jss scaffold Foo ...
1
vote
1answer
82 views

Sitecore JSS installation error

I am getting the below error once I installed the Sitecore JSS server packages Preview 4. I have follwed the same steps mentioned in https://jss.sitecore.net/docs/getting-started/jss-server-install ...
3
votes
2answers
225 views

Headless CMS : Sitecore vs Contentful

We are currently using Sitecore for one project but did not use JSS anywhere. Other project team plans to use headless CMS and considering "Contentful" CMS for this. Could you please anyone can ...
2
votes
1answer
39 views

Cannot get FullWipe to work with Sitecore JSS Tech Preview 4

I've setup a Sitecore 9.0.2 solution, and i'm testing out JSS. I'm using code-first, and I'm trying to get FullWipe to work on jss deploys. According the documentation, i'm supposed to set ...
2
votes
1answer
64 views

React vendor chunk size quite large

I recently started working on a JSS React template. Today I ran jss build and found that the vendor chunk size is 436KB non-gzipped. Being that JSS is built on top of CRA whose vendor files total ...
1
vote
0answers
66 views

Sitecore Experience Editor with JSS SDK

We have a requirement of using Angular page along with Sitecore 9 JSS SDK. There are two components on the Angular page where first component gets data from Sitecore and other pulls data from API. ...
6
votes
1answer
111 views

How to add a route like app/payments/:id in JSS? react

How to add a route like app/payments/:id in JSS and make a component receive the id to handle it
3
votes
1answer
124 views

JSS Layout Service not returning items from datasource with query

I am trying to use the JSS service Layout API to get the items from a datasource specified in a control. When I set a specific item as a datasource, I do get the item fields. But when I use a query ...
0
votes
1answer
146 views

JSS start connected mode issue

JSS start connected mode issue, using JSS Tech Preview 4, React, Sitecore 9 Update2. Here is the complete log. jss.sc/sitecore/api/jss/dictionary/my-first-jss-app/en?sc_apikey={078944F4-4AAB-4086-...
3
votes
1answer
216 views

JSS deployment issue with react, using JSS Tech Preview 4

JSS deployment issue with react, using Tech Preview 4. Here is the complete log: PS F:\Drive\my-first-jss-app> jss deploy app -c -d JSS is creating a manifest for my-first-jss-app to ./sitecore/...
0
votes
1answer
33 views

Any way to remove disconnected manifest processing?

I'm working on migrating a legacy Sitecore site to JSS. In order to support the field types that they have in the existing site I have to support fields that do not conform to the predefined ...
5
votes
2answers
111 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
2answers
47 views

Access denied while importing sample react app to Sitecore

I have installed JSS tech preview 4 and trying to import the sample react app "sitecore-embedded-jss-app". When running jss deploy app or jss deploy app -c -d , I get the message Forbidden - ...
0
votes
2answers
122 views

Which frontend is more supported by JSS?

In my company we feel comfortable with VUE Angular React But I'm not sure which of the three, JSS is a "best fit" for, or which will be most supported in the future. Will any of them be a better ...
3
votes
1answer
73 views

Hitting the Layout Service Endpoint Is Not Recording Analytics

I want to use the layout service endpoint that is a part of jss. If I make a request to the layout service endpoint should any analytics events be triggered by default? Currently it seems that making ...
0
votes
1answer
56 views

Switching from JSON to YAML

The basic-sample-react-native project comes with the data routes setup in a JSON file. Can you tell me what the steps are for using a YAML file instead? I swapped out the JSON file for a valid YAML ...
1
vote
1answer
155 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 ...
5
votes
1answer
72 views

Providing “deeper” data to placeholders

My understanding is that the fields structure in routes data should be fairly flat, having just the fields and then a value beneath. Example: --- name: about placeholders: appname-main: - ...
0
votes
1answer
53 views

How to add / view component items to / in a route

I have some questions about adding items on Sitecore route. Here is an example : I created MyCarrousel item that display images. My Sitecore tree : Content (directory) MyCarrousel (item) Home (...
2
votes
3answers
110 views

Layout API returning strange code into placeholder

Here is my Sitecore tree Here is my data item in the experience editor (using the default Welcome component). I removed the Sitecore background image that was in the CSS. Here is what the layout API ...
1
vote
1answer
107 views

Getting 404 error when retrieving items through Layout API

I'm working with the React JSS Basic example. I created a new item based on the default "Welcome" component and I'm trying to retrieve it through JSS. Here is my Sitecore tree : To get Welcome-1 ...