Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
2answers
105 views

Get items from specific template from sitecore content tree in JSS

I am creating a left navigation component in sitecoreJSS (using Angular), for this I need to retrieve complete tree under specific node, and I created a left navigation template and inherited this ...
1
vote
1answer
139 views

Could not load file or assembly 'System.Web.Helpers…` when loading JavaScript files [closed]

We have deployed Sitecore 9.2 with JSS on a production environment and when accessing page, page gets loaded but in the network tab, we see none of the js file gets loaded. it throws 500 error. When ...
1
vote
1answer
119 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
1answer
179 views

GraphQL datasource is empty with Integrated JSS App

I have a query that is working in the GraphiQL UI : query GetBreadcrumb($datasource: String!) { datasource(value: $datasource) { ...mySelectedFields parent { ...mySelectedFields ...
1
vote
1answer
96 views

Adding new components/content to existing application

I'm still pretty new to JSS/Sitecore and am trying to wrap my head around some of the concepts. One thing I don't understand is if its possible to create new layouts/templates on an existing app and ...
1
vote
1answer
108 views

Using JSS Sitecore 9.1 with scaled architecture

I have installed Sitecore 9.1 XP scaled(XP1) topology so I have sitecore.cm ,sitecore.cd and other app roles installed (REP, PRC, etc). I have configured JSS and am able to use it with sitecore.cm . ...
1
vote
2answers
200 views

Exception thrown while importing JSS app args.App.ImportUser is null or empty

I deploy with this command: jss deploy app --includeContent --includeDictionary When I do I get the following error: Exception thrown while importing JSS app Exception: System....
1
vote
1answer
203 views

What is the cause of the error - Rendering ID was not present in the rendered renderings context?

I am getting a strange error when deploying a JSS application to Sitecore and running in Integrated mode. Rendering data contained rendering reference ID 6cc52330-7130-49a8-9585-5b9b8d946847 but ...
1
vote
1answer
321 views

How does one convert Sitecore JSS React boilerplate to typescript?

Is there a guide of some kind or possibly some helpful information floating around regarding the addition of typescript in a Sitecore JSS react boilerplate project? So far I've only been able to get ...
1
vote
1answer
170 views

Define NameValue List in JSS

I am just trying to define NameValueList in one of my JSS component. Looks like there are only defined set of fields available in CommonFieldTypes [@sitecore-jss/sitecore-jss-manifest]. Is there a way ...
1
vote
1answer
477 views

JSS Setup script failing with: Assertion `args[1]->IsInt32()' failed

Following the JSS quick start instructions I do: npm install -g @sitecore-jss/sitecore-jss-cli jss create my-first-jss-app react cd my-first-jss-app jss start Next step I go to is to run JSS Setup ...
1
vote
1answer
556 views

Error on typings using JSS Text with Typescript

I'm getting an error on the fields property when using Typescript from this tutorial class Profile extends React.Component<Props, State> { constructor(props: any){ super(props); } ...
1
vote
1answer
700 views

Import process fails : “Unexpected response from import service: Status message: Found”

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. I cant able to deploy the app while running deploy command, ...
1
vote
1answer
390 views

Virtual Login in Sitecore 9.1 using JSS

We are implementing JSS in headless SSR mode, we would like to know a way to virtually login to Sitecore from our JSS components. I mean the user authentication will happen with an external system ...
1
vote
2answers
271 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
2answers
579 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 ...
1
vote
1answer
299 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?
1
vote
1answer
312 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
0answers
14 views

Can we use SXA Search Functionality with JSS pages

With Sitecore 9.2 and JSS, can we use the SXA search functionality and configuration (scopes and boosting etc.) with JSS ? Has anyone done this or did you encounter any specific issues?
1
vote
0answers
24 views

Personalization on Layout Service not working when calling from JSS App

My Sitecore CD website in IIS is http://cd.my-website.com with a role as ContentDelivery. This site contains Sitecore and custom API code in Headless mode. The React code for the JSS app is on a ...
1
vote
1answer
46 views

JSS Deployed to Docker Container: Links to media files missing port number

When I deploy a JSS app to a Sitecore instance running in a Docker Container and run our applications in Integrated Mode, our application is accessible with a hostname and port number (e.g. http://jss....
1
vote
0answers
37 views

A rendering error occurred: Cannot read property 'fields' of undefined

Trying to add RouteType item (as provided in samples on creating a new JSS app). Once I add in experience editor, it appears fine like below But as soon as I click save, I got below error message. ...
1
vote
0answers
28 views

Sitecore Analytics not working in Sitecore 9.2 JSS Application

I have enabled the following settings <setting name="Sitecore.JSS.TrackerServiceEnabled" value="true" /> <setting name="Xdb.Enabled" value="true" /> ...
1
vote
1answer
60 views

Create Validation Rules via JSS

I'm working on a Sitecore 9.2 JSS project that needs a required field that results to FatalError. The default required field in Sitecore is using CriticalError. I can create it manually in Sitecore ...
1
vote
0answers
35 views

Running jss cli commands from c# class

Im trying to run jss cli commands (Windows Powershell) from my C# Class. I`m creating the commands dynamically, but i noticed that jss commands are not running. PowerShell ps = PowerShell....
1
vote
2answers
196 views

Read values from a drop down list

New to SitecoreJSS and Angular. Using Sitecore 9.0.1 and SitecoreJSS 11.0 (Angular) Created field - "HeadingBackgroundColor" type Droplist with data source pointing to different folder (I can ...
1
vote
2answers
60 views

Making Sitecorepath dynamic in Sitecore JSS

In Sitecore JSS, we are defining the app name, Sitecore path etc in the below section: <app name="GCP" sitecorePath="/sitecore/content/Home/JSS" appDatasourcesPath="/...
1
vote
0answers
56 views

JSS Quick Start issue

When following the Quick Start tutorial with the commands below, I receive the attached error. Commands: npm install -g @sitecore-jss/sitecore-jss-cli jss create testtwo angular cd testtwo jss ...
1
vote
0answers
27 views

Front end implementation if my resolver has nothing to display

Version and Environment: Sitecore 9.1 + JSS(React) What I am doing: I have the requirement to handle the un-authenticated users if they try to access a page which is for authenticated users only. ...
1
vote
0answers
90 views

Sitecore Paas installation failure - AppGallery Deploy Failed: The declared parameter 'Application Path' is not recognized

We are trying to create Sitecore 9.2 instance in azure PaaS using ARM templates. The ARM templates worked fine. Now we have modified the ARM templates to install the JSS module with Sitecore while ...
1
vote
0answers
175 views

Experience Editor - An error occurred. [Log message: Value cannot be null. Parameter name: source]

I have a new Sitecore 9 vanilla install. I created a JSS site and entered the connected mode. Immediately I'm getting an error in the Experience Editor. On-screen I see: An error occurred. [Log ...
1
vote
1answer
152 views

How to get child items from a DropTree (itemlink) path in JSS using React

Is there a way to get child items from a droptree (itemlink) path in JSS using React without using GraphQL? I see there are LayoutService but it only retrieves child from the contextItem or ...
1
vote
0answers
44 views

No application configuration file found

We have deployed our Sitecore JSS Application to the CM and CD Server (Azure VM). The site is up and running but some js and css files in root/dist/$name folder are throwing 500 Internal Server Error. ...
1
vote
0answers
58 views

Analytics ID has been flagged as robot traffic even when AutoDetectBots is set to false for Layout Service call?

I am using Layout Services API call to get data from Sitecore. Layout Service API is working fine and I am getting a response back in json format. My xDB is enabled and working fine for other ...
1
vote
0answers
64 views

Accessing an Image SRC from code

I'm working on a Sitecore JSS site, Angular framework, disconnected mode. I'm trying to access the SRC attribute of an image field in my components ngOnInit method. Stepping through the code, it ...
1
vote
0answers
30 views

Getting 404 not found error with Sitecore.HabitatHome.Omni on http://habitatfitness.dev.local/sitecore/api/habitatfitness/sports/facet?sc_apikey={key}

I was doing some research on Sitecore.HabitatHome.Omni. It is working fine at my local instance but getting an error while setting up personalization. I got a 404 status code while submitting the form ...
1
vote
0answers
111 views

Personalization is not working in Layout Service call?

I only installed Sitecore JavaScript Services Server for Sitecore 9.1.1 XP 11.1.0 rev. 190508.zip to check Layout Services and nothing else. My jss layout service is absolutely working fine with url ...
1
vote
0answers
298 views

Unhandled Rejection (TypeError): Cannot read property 'sitecore' of null

I ran the command jss start:react , getting the error. Error occured while trying to proxy to: localhost:3000/sitecore/api/jss/dictionary/myjssapp/en?sc_apikey=no-api-key-set. I am working on a ...
1
vote
0answers
48 views

Sitecore 9.2 JSS with Solr 7.5 , JSS route items and its subitems are not indexing

Currently we are developing Sitecore JSS app with React frontend. in this we are using Headless SSR mode to create the content in sitecore and rendering. our application is working fine with React, ...
1
vote
0answers
90 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 ...
1
vote
1answer
154 views

Define a content list and populate it

I'd like to define a field in a component that would display a set of values that my contributors could choose when using my component. Let's say that my field is a ratio, I want the users to be able ...
1
vote
0answers
83 views

How to get Item from ItemID in JSS? [closed]

I am trying to understand how to fetch Item from ItemID in JSS. What is alternative for Sitecore.Context.Database.GetItem(new ID("{11111111-1111-1111-1111-111111111111}")) in JSS?
1
vote
0answers
61 views

JSS Headless mode issue

I am trying to run my local jss app in headless mode. while trying to hit the jss service, I am not getting the expected o\p. I can the security info object has 401 as statuscode. If I try hitting ...
1
vote
0answers
153 views

What is the best way to flatten structure

I have a structure where directly below the /home node I wish to have all the stores. Each store should have information like opening hours and address. This data was created as a component. This ...
1
vote
1answer
192 views

How to render a component after a async request with React & Sitecore JSS?

I have a simple article page. I should have an infinite scroll implementation, meaning once a user has reached the bottom of the page, I should load the next article. How can I render a component ...
1
vote
2answers
213 views

After installation JSS 11.0.0 onto Sitecore 9.1, URL is not giving right response

I've installed JSS 11.0.0 onto Sitecore 9.1. URL:https://dev.sitecore.net/Downloads/Sitecore_JavaScript_Services/110/Sitecore_JavaScript_Services_1100.aspx I have added API key as mentioned here: ...
1
vote
1answer
62 views

Adding footnote component/syntax to jss content field? [closed]

I'm looking for a way to allow content editors to add legal footnotes/disclosures within inline content. My initial thought was to instruct them to use some sort of syntax, such as [[disclosure=12.34]]...
1
vote
1answer
187 views

Memory leak in disconnected mode

I have a global footer referencing other items (yml files), which is referencing to the same footer, resulting in too big string to parse. This wasn't a problem in TP4, but I noticed that I get a ...
1
vote
1answer
291 views

Error when trying to scaffold an Angular component

With a fresh install of the jss cli and creating an Angular application jss create test-app angular when I try to generate a component I get the following error: Component testComponent is ...
1
vote
0answers
192 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. ...

1 2 3
4
5
8