Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
2
votes
0answers
559 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
1answer
279 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
0answers
157 views

How do I get my SSR proxy to site resolve the LayoutService for my JSS/SXA Site?

We're on Sitecore 9.2, SXA 1.9, JSS 12. previously On 9.1, we had the following setup: JSS App sitting in /sitecore/content/myapp A site definition that mapped a hostName to our /myapp A JSS ...
2
votes
0answers
67 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
1answer
297 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
8k 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
1answer
267 views

Unexpected response from import service: Invalid Authentication

I'm trying to perform the command to deploy my application to a remote CM server jss deploy app --includeContent --includeDictionary but I receive the following error Sending package sitecore\package\...
1
vote
1answer
346 views

Edit frame with Sitecore JSS

I am using Sitecore 9.2 with JSS and code first approach. I have one component which has datasource, datasource is pointing to folder and folder has some child items. I am getting data using GraphQL, ...
1
vote
2answers
832 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
4k 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:...
1
vote
1answer
243 views

How to get app name for jss dictionary

How to get app name for jss dictionary, for request /sitecore/api/jss/dictionary///. Neither throws 404 error if not using sc_apikey or Unknown app name?
1
vote
2answers
650 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
3answers
686 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....
1
vote
1answer
226 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?
1
vote
1answer
130 views

Create new user with JSS

Is there any API by which can create a new user in Sitecore with JSS?
1
vote
1answer
1k 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
1answer
435 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
70 views

ProcessItem when extending JssGetLayoutServiceContextProcessor

When extending JssGetLayoutServiceContextProcessor, is there a way to call ProcessItem just like in Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver? public class ...
1
vote
3answers
252 views

How to run multi language JSS frontend websites on same azure app service?

One of my project is using Sitecore 9.1.1 & JSS, also Server Side Rendering (SSR) Mode is running successfully on Azure App Service. Ex. www.example.com - which is English language website is ...
1
vote
1answer
160 views

Set datasource to another item with sitecore jss

I am using JSS code first and want to create a component that has its datasource set to another item from which it pulls its data. Lets say i have a 'BlogPromotionSpot' component that does not have ...
1
vote
1answer
265 views

GraphQL Filter on PageType

I have been successfully using GraphQL to filter on items assigned to a specific template. Is it possible to do the same with items of a certain PageType?
1
vote
1answer
73 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 ...
1
vote
1answer
125 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
225 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
1answer
466 views

Sitecore jss angular sample application having empty body

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. After deploying angular sample app, Site ui has empty body ...
1
vote
1answer
351 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
342 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
3answers
621 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 - ...
1
vote
1answer
728 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
70 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
371 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-...
1
vote
1answer
55 views

Delete Sitecore JSS Items after deploy

We created a banner component using "jss banner scaffold" and deployed in sitecore using "jss deploy app -c -d". Now we want to delete this component, is their any command for ...
1
vote
2answers
99 views

Visualization.GetRenderings returns empty string using local: data source

I am trying to index rendered content. I am using the following plugin. It works with a global data source, however, it does not index rendered content if the data source is local (local:/Data/Rich ...
1
vote
1answer
41 views

JSS Limit depth of items retrieved in linked fields

I have an App Route A for a page and is loading all the fields including a multilist that links to Item App Route B that can have in the multilist a link to Item A, creating a infinite loop. Is there ...
1
vote
2answers
141 views

Error running `jss deploy app`: TypeError: logReplies.forEach is not a function

When running: jss deploy app --includeContent --includeDictionary --acceptCertificate XX:XX:XX:XX:XX:XX... I get the error: Sitecore has accepted import task JSSImport-myapp-2:59:34 PM Unexpected ...
1
vote
1answer
73 views

Relative item path in layout service call is not working

I am trying to access Sitecore 10.1 item via layout services and it is working fine with GUID and full path. But when I am trying to access it via a relative path from the current app, it is not ...
1
vote
2answers
362 views

Connection to your rendering host failed , Not Found error In Experience Editor

I am working on setup a local XP0 Sitecore 10 development env for training, and one of the learning curves is to host the headless MVP site without containers, I had installed all pre-perquisites, ...
1
vote
1answer
214 views

Unable to get local issuer certificate with Sitecore JSS Create

I am trying to create JSS app locally however getting below error while running the Sitecore JSS creates command. Error:Unable to get local issuer certificate Command: jss create appname react I am ...
1
vote
1answer
273 views

Caching in Headless Architecture Mode - How does the Caching works for each ReactJs Component?

I hope you all are keeping safe during these uncertain times. I have two questions. I am creating a simple react-js page with 4 components. Can someone please guide me how the caching works in ...
1
vote
1answer
93 views

Datasource location overwritten at JSS deploy

The datasource location field of the renderings after deploying the items with JSS is by default : ./Page Components|/sitecore/content/tudorlocal/Components/ContentTest However, when adding a ...
1
vote
1answer
212 views

Get the item from a ReferenceField type in Sitecore JSS based on Langauge version

I am working on a multi-lingual site where the data source has multiple language versions. I want to retrieve the items of multilist based on the language parameter passed. Sitecore GraphQL query: {...
1
vote
2answers
345 views

Droplist item returns name instead of "display name" for the component

I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/...
1
vote
1answer
203 views

JSS connected mode enters experience editor mode

When I'm working with the local web server (jss start:connected) and at the same time I log into the actual instance of Sitecore (dev.test.com) and go to the experience editor. The local version get's ...
1
vote
1answer
357 views

How do I enable .babelrc for JSS

Coming from C#, I really like the below code var prop = item.prop?.propname Syntax. This is supported in JS if you use the below code @babel/plugin-proposal-optional-chaining Babel plugin. ...
1
vote
1answer
165 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
2answers
100 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 ...
1
vote
1answer
600 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 ...
1
vote
1answer
337 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 ...
1
vote
1answer
205 views

Is Habitat Implementation using ReactJs, for all (3) Sitecore Headless Modes available?

Is there any reference implementation available from Sitecore or 3rd Party for Sitecore Headless Mode (API Mode, Integrated Mode, SSR Mode) & React Js. I am expecting a sample project like ...
1
vote
2answers
303 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 ...

1 2 3
4
5
10