Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module.
103
questions with no upvoted or accepted answers
4
votes
0answers
264 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
28 views
Why JSS Layout Service default resolver differently resolves reference fields of the same item, leaving some with the reference item context or ID?
JSS Layout Service default resolver resolves reference fields with full referenced item context, but other reference fields leaves with the ID of the referenced item.
For example there is an item, ...
2
votes
0answers
46 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....
2
votes
0answers
483 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
124 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
62 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
269 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
1answer
23 views
Sitecore JSS Failed to compile
I am working on Sitecore 9.3 with JSS using a code-first approach. I have created the first component called "HeroBanner" after that I run the command "Jss Start" but it is giving ...
1
vote
0answers
9 views
Sitecore forms with Sitecore jss(Angular app)
I am trying to use sitecore forms with Jss angular app, I find this on github and trying to use it in my app
https://github.com/bic742/sitecore-jss-angular-forms
the form is rendered successfull. but ...
1
vote
0answers
56 views
JSS app deployment issue - imports are disabled on the SXA JSS sites
On JSS deploy getting error:TypeError: Cannot read property 'forEach' of undefined
In the Sitecore log, the error mentioned is: "Import requested wipe import on 'jsssitename' but wipe imports ...
1
vote
0answers
16 views
Asp.Net Model binding is not working for any node that is under “placeholders” using Sitecore ASP.NET Rendering SDK
I am following this https://doc.sitecore.com/developers/100/developer-tools/en/model-binding.html to bind my custom model for complex json response from my LayoutService API.
The properties and fields ...
1
vote
0answers
31 views
Node render engine project directory path '{website-path}\app' does not exist. error when trying open the JSS site
I am using sitecore 10 with JSS, and I deployed the app to sitecore but when I am trying to open the site it gives me error
Also i checked this link Node render engine project directory path '{...
1
vote
0answers
47 views
Error deserializing import data when run “jss deploy app --includeContent”
I am using Sitecore 10 with JSS. When I tried to deploy my app to Sitecore I got the below error
Sitecore has accepted import task JSSImport-atlp-informational-web-1:17:10 PM
Job started: JSSImport-...
1
vote
0answers
34 views
Sitecore Virtual login and accessing userProfile.context during layout service execution
we are working on custom personlization rules with user data available outside sitecore. App is developed in jss in ssr mode. With sitecore login setting up virtual user context when user logged in to ...
1
vote
0answers
31 views
JSS disconnected mode. Not able to add my first component into the “jss-main” place holder
Node JS version: v14.15.3,
JSS Version: 15.0.1,
Mode: Disconnected,
Issue: Not able to add my first component into the “jss-main” place holder
Following are the steps:-
I have created a JSS ...
1
vote
0answers
20 views
Rendering not getting picked from cache
Sitecore 9.3 - JSS
I was working on the performance aspects of my application. And I checked the details on Stats.aspx
The different JsonDatRenderer are for different Websites hosted on the instance.
...
1
vote
0answers
33 views
Is there a change in GraphQL Schema between JSS version 11 and 14?
I am currently using sitecore 9.0.2 and have installed JSS to query the data using graphQL queries. I use below features of JSS:
Querying data using http://sitecore.local/sitecore/api/graph/items/...
1
vote
0answers
194 views
How to host a JSS app on localhost at a specific port?
How can I configure Sitecore to host my JSS app at a specific port on localhost? e.g. if I navigate to localhost:44011, my site renders instead of the default Sitecore home page.
Our React single-...
1
vote
0answers
59 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
0answers
62 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
68 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
0answers
47 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 ...
1
vote
0answers
36 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 ...
1
vote
0answers
42 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 ...
1
vote
0answers
83 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 ...
1
vote
0answers
598 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 ...
1
vote
0answers
24 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://...
1
vote
0answers
62 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 ...
1
vote
0answers
41 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
53 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 ...
1
vote
2answers
441 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
94 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
62 views
Create new content missing when adding a component in experience editor
I'm using Sitecore 9.3 with JSS 13.
When I try to use the add here and select one of my components I get the Select the associated Content dialog box. This box is missing the create new content ...
1
vote
0answers
77 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
33 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
110 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
330 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
284 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
58 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
83 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
66 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
36 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
160 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
389 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
58 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
66 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
267 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
243 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
244 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: ...