Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

84 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
357 views

Adding component with inner placeholder breaks placeholder settings

I have component manifest.addComponent({ name: 'MyComponentWithPlaceholder', icon: SitecoreIcon.DocumentTag, fields: [ { name: 'heading', type: CommonFieldTypes.SingleLineText }, ], ...
4
votes
0answers
139 views

Sitecore JSS integrated mode performance tuning

I hope you all are doing well and safe. Today I am here to ask a question specific to Sitecore JSS performance. Category - Sitecore JSS integrated mode, performance issue Sitecore Version - 9.2, ...
2
votes
0answers
260 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
72 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
59 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
57 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
0answers
237 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 ...
1
vote
0answers
17 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
57 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
33 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
161 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
0answers
52 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
26 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
86 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
150 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
121 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
43 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
53 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
62 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
97 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
1answer
93 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
0answers
284 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
45 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
85 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
0answers
59 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
129 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
177 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
202 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
0answers
172 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
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
vote
0answers
528 views

Configuration error in JSS Sitecore Quick start for development

Configuration error while browsing Sitecore basic jss app after performing deployment steps mentioned in below link: https://jss.sitecore.net/#/setup/app-deployment?id=app-deployment
0
votes
0answers
10 views

Node version issue in Multisite Sitecore jss application in Azure

I have 2 jss apps deployed to azure. Both are built on node 12.15.0 and I have WEBSITE_NODE_DEFAULT_VERSION as 12.15.0 in azure app settings but Only one of the apps is getting loaded at a time. For ...
0
votes
0answers
23 views

Sitecore jss headless mode with multiple sites

I have downloaded jss proxy and configured my site to run in headless mode. How to configure multiple sites with different domains
0
votes
0answers
25 views

Sitecore First Approach Can't see the component added to child placeholder

We are working on POC to test new page addition through SitecoreFirst workflow. Have added a sample template and Json rendering to my Sitecore app from content editor and created a route to host a ...
0
votes
1answer
50 views

Running JSS-CLI to create app I'm getting “JSS CLI is running in global mode because it was not installed in the local node_modules folder” messaging

I'm running Windows 10, node v14.5.0 and JSS v13.2.0 which is the latest at this time (I've literally just installed it). I'm trying to create an angular app with the JSS-CLI with the following: jss ...
0
votes
0answers
42 views

How to set a Datasource explicitly in yml file and change it when I go for personalization?

I'm using Jss react. I want to pass a datasource to a component which is coming from a different location (not from component itself or sitecore context). I want to use personalization so the ...
0
votes
0answers
34 views

Can I create a native android app by retrieving data from Sitecore?

Current situation I have Sitecore 9.3. My Sitecore runs locally inside a vm. I've created a jss website and deployed it to sitecore following the official guide. What i want I want to create an ...
0
votes
0answers
23 views

Consume sitecore jss data from a separate sitecore instance

I have a Sitecore 9.1 MVC implementation where I want to consume the layout service response from a different Sitecore endpoint as an rendering. I have gone through the ways mentioned in Sitecore ...
0
votes
0answers
35 views

JSS Import media file returns error that Media does not exist [SC JSS+Angular]

I created a custom template to be used in my content items and one of it's field is an Image field. Also, created a content item under "data/content" using that template and supplying the correct ...
0
votes
0answers
28 views

Get current system Date and Time using GraphQL (SitecoreJSS)

Is there way to get the current system date and time using GraphQL (on GraphQL UI)? Working on a requirement that I need to compare the Sitecore item expiration date(custom field) with the current ...
0
votes
1answer
44 views

GraphQL query to search for pages based on template

The following GraphQL query returns items based on the Page template: search(keyword: "Dream", first: 10, language: "en", fieldsEqual: [{name:"_templatename", value:"Page" }] ) { ...
0
votes
0answers
12 views

Can't call login-page from JSS app

I tried to follow this guide to login from the JSS-app, but I get an error when posting: Access to XMLHttpRequest at 'https://myApp/sitecore/api/ssc/auth/login?sc_apikey={APIKey}' from origin 'http://...
0
votes
0answers
25 views

Not able to edit text inline in button tags

I am using Sitecore 9.3 with JSS. I have created few components that have buttons. The button labels are editable in sitecore. The issue is when I edit those button labels inline, e.g, I need to add ...
0
votes
0answers
34 views

Preferred method of populating rendering data with route / context item instead of datasource item

I have component that has no explicit datasource because I want it to get its field values from the route item (which also happens to be the Sitecore context item). What would be the preferred method ...
0
votes
1answer
62 views

Wildcards in Integrated Mode

I have a Sitecore site running: https://mysite.dev.local. The pages on this site have a JSS layout and JSON renderings on them. Navigation to a page (e.g. https://mysite.dev.local/foo/bar) would ...
0
votes
0answers
21 views

React owl.carousel $ not defined in preview but working in edit mode

I'm having an error right now with owl-carousel. I have it imported in some of my components in react jss and it is throwing error when I'm on Preview in Experience Editor but working perfectly when ...
0
votes
0answers
33 views

Enforce 443 port added in the generated media url

In my local environment, I have 2 sitecore JSS sites running and I need to make both available over http. one with port 80 and one with port 443. Example: http://abc.com http://abc.com:443 I ...
0
votes
1answer
30 views

Unable to run jss build command on build server: 'jss' is not recognized as an internal or external command operable program or batch file

On my TeamCity build server I am attempting to run the jss build command in one of the build steps, but it fails with the error: 'jss' is not recognized as an internal or external command operable ...
0
votes
2answers
49 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="/...