Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
2
votes
1answer
409 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 ...
2
votes
3answers
292 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
1answer
3k views

SSR issue: window not defined

We are using react as client framework for building a SPA. In disconnected mode it works well but then in integrated mode I see the below error when we browse the page or preview it. Any clue as to ...
2
votes
2answers
571 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 ...
2
votes
1answer
391 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 ...
2
votes
1answer
90 views

How can I get the current URL in the SSR of a page

In my layout.js file, I get the current URL of the page with this code: url: typeof window !== 'undefined' ? window.location.href : '', On first request of this page from the server, the url is set ...
2
votes
1answer
132 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 ...
2
votes
2answers
404 views

Unexpected response from import service: Error: unable to get local issuer certificate

I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
2
votes
2answers
245 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
124 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
105 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
77 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
93 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
2answers
253 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
101 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
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 ...
2
votes
3answers
374 views

Get Items from data source folder by JSS/React

I have this react component (rendering) which has a data source (a folder with items). Is there any way to get those items and render their fields in react component? In props was passed ...
2
votes
1answer
309 views

How to verify if Sitecore JSS is installed correctly

How do I verify if the JSS server package is installed correctly in sitecore? I have installed "JSS Server package - Sitecore JavaScript Services Server for Sitecore 9.0 11.0.0 rev. 181031" by ...
2
votes
2answers
490 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
268 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
367 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
110 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
370 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
503 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
3answers
149 views

Pesonalization rule for the page - not component level

is there any way to show the separate page based on personalisation rule? i need to show one page when the user is authenticated and another page when user is not authenticated. Personalization is ...
2
votes
2answers
146 views

best practice for fetching authoring fields in sitecore jss

Ours is a SPA app being built using Sitecore JSS. One of the pages has the requirement to show client info. But the actual client data comes from an API. But the content labels (like Description ,...
2
votes
2answers
667 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
149 views

Removing templates from JSS

I would like to use the advance Angular JSS project as an starting point for a code first approach but I would like to know if it is possible to remove all components that came with that Angular ...
2
votes
1answer
96 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": { ...
2
votes
1answer
76 views

How to share templates and renderings between multiple JSS apps?

I am exploring Sitecore JSS, and able to create new renderings, templates for my app. Since we've to create all templates and renderings for the given App, wondering how can we create templates, and ...
2
votes
1answer
192 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
280 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
231 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
0answers
42 views

Images are broken on Safari Browser [closed]

I'm using Sitecore 9.1, JSS and ReactJS. Some of the images are not showing on Safari but working fine on Chrome. Here's a sample url: /-/media/Intelligence-Bank/Folder/Folder/Logo/Logo.png?h=422&...
2
votes
0answers
41 views

jss build does not change hash on files when outputHashing is set to all

We are now going to production and are noticing the jss build and jss deploy files are not updating the hash on the file names when the content changes. This is causing cache busting to not work and ...
2
votes
0answers
30 views

Method not found: 'Sitecore.JavaScriptServices.ViewEngine.Pipelines.GetRenderEngineFactory.GetRenderEngineFactoryArgs.get_RenderEngineType()

I am working on Sitecore JSS and created a sample application. When I am trying access with the new hostname, configured in the app patch file, I got below error. 35472 12:00:27 ERROR Failed to ...
2
votes
1answer
49 views

While opening the jss app item in experience editor getting Error: EPERM: operation not permitted, lstat

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: EPERM: operation not permitted, lstat 'D:\sitecore' Error: EPERM: operation not permitted, lstat 'D:\...
2
votes
1answer
75 views

Datasource Location not working as expected

I created a rendering for my form and linked the datasource location to sitecore/forms (which should be correct). The mysterious thing about this is that when I select my rendering in the experience ...
2
votes
1answer
37 views

JSS translations not working in integrated mode

I am using Sitecore XP 9.1 with JSS, and performed the default JSS scaffolding setup. Translations are working in disconnected mode, but when I switch to integrated mode the translated page is not ...
2
votes
0answers
47 views

Error when personalizing JSS renderings

I'm getting the following error when I try to personalize a JSS component that was deployed into a JSS tenant on 9.2: > Cannot read property 'image' of undefined TypeError: Cannot read property '...
2
votes
2answers
150 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 ...
2
votes
0answers
196 views

Tracking Page Events and Goals Does`t Work Correctly

I am working on a mobile application (Sitecore 9.1, JSS React Native) with a couple of pages. A page event is assigned to each of the mobile application pages. I have enabled indexing anonymous ...
2
votes
1answer
1k 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
2answers
266 views

Why don't nested components show in the output of the JSS Layout Service?

Using the OTB sitecore installation, I wanted to JSS'ify the home node for testing purposes. By default this is setup with the following presentation details: The steps I followed were to: Update ...
1
vote
1answer
58 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?
1
vote
1answer
351 views

Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process

getting the below error at Experience editor for Home item. Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process. To resolve this: [1] ...
1
vote
2answers
155 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 ...
1
vote
2answers
130 views

Image in rendering parameters to display background picture

Here is what I'm trying to achieve : I have a component that has a parameter backgroundImage. This parameter was previously a field and I achieved what I wanted without any problem but in order to ...
1
vote
1answer
258 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 ...
1
vote
2answers
178 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....