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.

10
votes
1answer
525 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.
8
votes
2answers
944 views

How does Sitecore JSS impact backend Sitecore development process

Context: Currently we use Angular JS but our front end team wants to use reactJS as strategic platform. Until Sitecore JSS came out; I had been telling them that Sitecore doesn't support it. I read ...
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 ?
7
votes
1answer
114 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
7
votes
1answer
255 views

“Could not find JSS app configuration” error during JSS import

I'm attempting to import one of the JSS sample applications and I'm getting the following error after running the npm run package command: Fatal error occurred while running import process. Exception:...
6
votes
2answers
193 views

Seeing Experience Editor markup instead of an editable field when using Sitecore JSS with React

I'm trying to output an editable field in a component of my React-based Sitecore JSS application: import React from 'react'; import PropTypes from 'prop-types'; const AwesomeComponent = ({ fields }) ...
6
votes
1answer
730 views

Sitecore 9 JSS implementation

We want to use JSS (https://jss.sitecore.net/#/) for headless development and there are a couple of things that are not very clear in the documentation. We want to preserve XP Editor functionality. ...
5
votes
1answer
90 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.
5
votes
2answers
113 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 -&...
5
votes
1answer
148 views

Sitecore JSS components and Sitecore MVC components in a single Experience Editor page

Can you use Sitecore JSS components with Sitecore MVC components in the same Experience Editor page? If this does work, does it work with dynamic placeholders? An example might be adding a Experience ...
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: "...
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: - ...
5
votes
1answer
131 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 ...
5
votes
1answer
82 views

Want to skip content during code-first deployment

I would like to avoid my content comrades from being unhappy and overwrite changes. Can I skip content from JSS package? Good day.
4
votes
1answer
132 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 ...
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). ...
3
votes
2answers
229 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 ...
3
votes
1answer
74 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 ...
3
votes
1answer
145 views

Install jss package (layout service) on content delivery server

I'm developing a Sitecore ssr with jss on azure using two app instances. One for content management and one for content delivery. I installed all the jss packages on content management and it works. ...
3
votes
1answer
140 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 ...
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. ...
3
votes
1answer
127 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 ...
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 ...
3
votes
1answer
223 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/...
2
votes
3answers
116 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 ...
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 ...
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 ...
2
votes
2answers
62 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 ...
2
votes
1answer
58 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, ...
2
votes
1answer
100 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 ...
2
votes
1answer
73 views

Sitecore JSS Can't resolve 'music/components/GenreList' in 'C:\Dev\sitecore_nine\samples\flo\musictore_react\src

I Created a Component namend GenreList but i cannot add it to my ComponentFactory Here is my gist: https://gist.github.com/Rian0702/10c3e7068b8e15617bb034dcfffca495 And a picture of my App ...
2
votes
2answers
25 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 ...
2
votes
2answers
72 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 ...
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
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 ...
2
votes
2answers
120 views

JSS vue - Error with server.bundle.js after jss deploy package

Good Morning, Yesterday I was working on a fresh install of Sitecore 9.1 and followed the documentation for JSS with vue. Everything was fine. I was able to connect my local app with my Sitecore. ...
2
votes
1answer
255 views

Sitecore JSS integrated mode with subsites

I have created separate bindings for the basic and advanced sample JSS apps as outlined in https://jss.sitecore.net/#/setup/sitecore-config?id=sitecore-configuration 127.0.0.1 JssBasicApp 127.0....
2
votes
2answers
183 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 ...
2
votes
1answer
25 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 ...
2
votes
1answer
53 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 ...
2
votes
1answer
109 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.
2
votes
1answer
292 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 --...
1
vote
1answer
315 views

Service based architecture in sitecore

I am analysing on the possibility of creating a web application using Sitecore where the web application is pure thin client using js based framework (knockout or angular) which can consume the ...
1
vote
1answer
158 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 ...
1
vote
1answer
53 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 ...
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 ...
1
vote
1answer
108 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 ...
1
vote
1answer
44 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... ...
1
vote
2answers
139 views

Sitecore Jss config deployment error

Can somebody help me to resolve this error which I am getting when deploying the same ReactBasicApp using sitecore jss [InstallationException]: Could not find JSS app configuration for 'my-...