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
1answer
27 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
38 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
19 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
2answers
41 views

Sitecore jss if statement

I want to create a breadcrumb and want to populate my view based on some condition. So, I want to have a if clause after each iteration. I need help.
0
votes
0answers
34 views

GraphQL Search implementation

I am trying to get data in my jss app from search using a solr index with the following query.. menuItem: search(index:"sitecore_breadcrumb_index", rootItem:"/sitecore/content/src/home/",first:5){...
0
votes
1answer
34 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
41 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
39 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....
1
vote
1answer
31 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
63 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
36 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
61 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
175 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
33 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
59 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
55 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
94 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
76 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
105 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
174 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
28 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
76 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
34 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
102 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
65 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
47 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
109 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
61 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
47 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 (...
1
vote
3answers
79 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
77 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 ...
2
votes
2answers
125 views

Import template from Sitecore to JSS React application

I understand the mecanism when you create component code-first and then you import it into Sitecore. I try to understand one point, how can I import new component from Sitecore (Sitecore-first ?) to ...
0
votes
0answers
59 views

JSS Angular - Placeholder not find in the layout definition

I am working on an app from already existing Sitecore application which is migrated as JSS application in the Disconnected mode, I have created my \data\routes\en.json but when I start the ...
1
vote
1answer
253 views

JSS vueJs - How to include vue-meta for server rendering

JSS Tech preview 3 vueJs sample basic I'm looking to include vue-meta for Server Rendering. I've successfully added it for Client Rendering, but, because the tutorial to include vue-meta is very ...
0
votes
1answer
122 views

How to add a favicon in the root of the app

JSS VueJs sample Tech preview 3 I tried to add favicons in /assets/favicon-16x16.png Then, in /src/app/ServerHtml.js, I added: <link rel="icon" type="image/png" sizes="16x16" href="/favicon-...
2
votes
1answer
216 views

The `style` prop expects a mapping from style properties to values, not a string

Created Sitecore 9 update 1 on Azure Web App using the Azure Marketplace. JSS packages have been installed successfully and also JSS deploy command successfully: jss deploy package --includeContent --...
2
votes
2answers
57 views

Unable to install JSS Server Package on Azure Web Apps

Installed SC9 update 1 using sitecore market place. I've been trying to setup JSS on Web Apps but not having any luck. When I try to install JSS Server package the installation process keeps spinning ...
1
vote
1answer
41 views

Sitecore JSS with Vue - Json are not identical between connected and disconnected mode

In disconnected mode I have a "value" that I don't have in connected mode. So if I need to do this: {{ fields.items.value.length }} it's working only in disconnected mode and not after a deploy... ...
2
votes
1answer
86 views

How to change between the two languages ​in my navigation with VUE.JS and JSS Sitecore?

I want to create a multilingual site with vue.js and JSS, I added in the folder data/route/en.json and fr.json, I don't know how to change between the two languages ​​in my navigation.
0
votes
1answer
119 views

Placeholder was not found in the current rendering data - JSS sitecore 9 with VueJs

In Disconnected mode JSS Tech Preview 3 Sample vue JS I have a component : data/component-content/Footer-nav With an ID : ID__footer-nav I can link all my pages to this component perfectly: "...
1
vote
1answer
60 views

How can i add an svg with a sc-link JSS with VUE JS?

I want to add svg icons in the footer with links <sc-link>, how can i do that?
0
votes
1answer
76 views

Placeholders in my component doesn't show in Sitecore connected mode after a deploy - JSS - vueJs [closed]

As a developer, I want my placeholder to be rendered in sitecore, so that I can add more components inside First of all, in disconnected mode, everything is fine: 1 - I have a placeholder named : ...
1
vote
1answer
97 views

How can I share data from one component in JSS with Vue Js?

As a developer, I want to change data from a component in ONE place, so that I don't need to duplicate this data for each pages How can I ask to my src/app/components/header-nav.vue <template&...
1
vote
1answer
44 views

JSS Rendering DataSource item Workflow States

In JSS datasource items, we can see "JSS Development Workflow" added. In that workflow, there are "Development Mode", "Content Mode" and "Published" states. In which state of the JSS development ...
3
votes
1answer
124 views

How JSS Rendering components bind to physical file

Once code-first JSS solution is deployed to a running sitecore instance, we can see rendering items created under Rendering folder in Sitecore content tree. But, Only Component Name field is ...
2
votes
1answer
48 views

I want my JSS app to be the homepage

I would like to see my app when I go to my local root URL (in anonymous mode). I deleted the Home website from the admin. So currently I have this tree: my-app.config looks like this: However, ...
4
votes
1answer
123 views

How to define JSS component in YAML without DataSource Template

I need to define a component in YAML manifest files in Sitecore JSS CodeFirst approach, where component doesn't have any "Data Source Template" field populated. In this case, NO template should be ...
5
votes
1answer
115 views

Understanding the overhead involved with routes and definitions

I'm enjoying JSS so far but have some general questions about what I perceive as "overhead" work involved in setting up the routes, component definitions and such. If I want to add a component, this ...
10
votes
1answer
349 views

What is JSS and how do I get started with building a JSS app?

I'm not 100% sure what JSS is and I want to experiment with some sample JSS apps and build a JSS app of my own.
0
votes
1answer
45 views

JSS deploy vueJs - then I need to manually Unprotect Layout to add my placeholders

Currently, each time I'm doing deploying jss using jss deploy package -c -d I need to manually unprotect the Item of my App Layout to include my placeholders. Any ideas how to stop this? Thanks