Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Are there any JSS deploy events to which I can tap my custom code?

Just looking if there are any events that are triggered while doing jss deploy?Similar to the other events item:copied packageinstall:ended ...etc
0
votes
1answer
9 views

SitecoreJSS deploy emptying field vales

Environment: Sitecore 9.0 update-1 SitecoreJSS 11.0.0 I created a sample SitecoreJSS app (using Angular), and created a new JSS component using jss scaffold <NewcomponentName>. I want to add ...
1
vote
0answers
18 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. ...
0
votes
1answer
29 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, ...
0
votes
1answer
34 views

Error when trying to configure JSS connected Demo

I am trying to configure https://jss.sitecore.com/connected-demo/ in my system. I ran two commands npm install -g @sitecore-jss/sitecore-jss-cli and npm install After this I ran jss start:connected ...
0
votes
0answers
31 views

JSS Page load issue

I have one website which is in Sitecore 9.2 and JSS. This website already deployed on the QA environment but the issue is that when I load the website the first time it displays some text after that ...
2
votes
1answer
62 views

Setting up a basic contact form with Sitecore JSS (not using Sitecore Forms)

I'm building a JSS App and need to set up a basic contact form (sends an email). Since I'm using Sitecore 9.1, Sitecore Forms is unavailable in JSS. How do I set up an endpoint in Sitecore to send ...
0
votes
1answer
35 views

Sitecore JSS placeholder issue on Route

I am trying to create a new route using Sitecore 9.2 JSS. Below steps I have followed: I have created a new Route i.e. Product. Then I have created two new placeholders jss-header and jss-footer. (...
0
votes
0answers
34 views

Node module not fully loading into browser

I am building a custom component library using Stenciljs and webcomponents. I have published to an npm repo and was able to create an example create-react-app app using all of the components without ...
0
votes
0answers
38 views

Multilingual implementation Angular JSS in disconnected mode

As per documentation in https://jss.sitecore.com/docs/techniques/content-translation it seems there is a possibility to run multiple languages in disconnected mode. But currently, when we do JSS start ...
1
vote
0answers
38 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
58 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 ...
3
votes
1answer
67 views

Cannot query field \“search\” on type \“Query\”

My question is based on already asked question and can be found here Sitecore Filtering by Field Value on Query of GraphQL This question is marked as answered by @jan-bluemink but I am facing the ...
0
votes
0answers
14 views

How to make Material UI components editable in Sitecore JSS React App?

Since I am using Material UI in my Sitecore JSS app, I wanted to know how can I make Material UI components to make it editable for experience editor? For example: How to make the below Material UI ...
0
votes
0answers
29 views

Rendering Null Datasource In JSS Site

Some of my JSS components are throwing errors when trying to insert and edit them in the experience editor. Most of the errors come from the fact that the datasource hasn't been set yet. In MVC, I ...
0
votes
1answer
42 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 ...
0
votes
0answers
36 views

SItecore JSS + ReactJS + Material UI

I have a Sitecore JSS React app setup and using Material UI as the UI framework for styling and React components. I want to know how to get the Sitecore field value in a material-ui component OR if ...
0
votes
0answers
48 views

XP sample react app create failed using npm “jss create react-app react”

i am new to npm environments and sorry for english. When i try to setup a JSS server like mentioned here https://jss.sitecore.com/docs/getting-started/quick-start. Details: Sitecore version : 9.3, ...
0
votes
1answer
47 views

Using Layout Service with master db

We have a requirement to fetch the item fro the master db. JSS is always pointing to the web db. We tried to add the query parameter as sc_content=master in the Layout Service, but still the Layout ...
2
votes
1answer
144 views

Integrated GraphQL is not working correctly with JSS with SXA

I've been struggling for a few days to get JSS Integrated GraphQL running on an existing SXA project. To rule out any issues being introduced by this project, I decided to go right back to square one, ...
3
votes
2answers
119 views

Integrated GraphQL is not executed in Experience Editor

We use Sitecore 9.2, SXA 1.9 + JSS 12.0. As for the JSS, we are using Sitecore First approach. Some JSON renderings have integrated GraphQL queries. The Jss site was created trough JSS Tenant/JSS ...
0
votes
2answers
46 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 ...
0
votes
1answer
56 views

Manage security access for items with GraphQL

We noticed that there is no limitation on what data can be queried, all the data in GraphQL can be retrieved within the Sitecore instance. Any GraphQL request with the correct API Key can retrieve ...
0
votes
1answer
76 views

Unable to use Sitecore Forms with JSS

I have followed the Sitecore Forms + JSS integration official documentation here: https://jss.sitecore.com/docs/techniques/forms#sitecore-forms--jss . But I am unable to find the Sitecore Forms ...
2
votes
0answers
49 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&...
1
vote
0answers
39 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. ...
4
votes
2answers
81 views

JSS layout service, how to restrict public access

I want to secure my Sitecore JSS LayoutService in such a way that only the client application (i.e. react app) can access my LayoutService API. Please note, I am not taking about the login/logout ...
2
votes
0answers
87 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
39 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 ...
1
vote
1answer
80 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
0answers
37 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 ...
0
votes
1answer
126 views

Performance Issue JSS+React

I'm having a performance issue, the loading speed is quite long. I also noticed that when I first load the page, there is some plain text showing while loading before the page completely loaded and ...
1
vote
0answers
51 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
26 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
63 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 ...
2
votes
1answer
80 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:\...
0
votes
0answers
61 views

Push notifications in Sitecore 9.2 and JSS

I'm using sitecore 9.2 with JSS and Azure search. I am searching for an out of the box way to push notifications to sitecore users. I found this link talking about notification center but I think it'...
0
votes
0answers
26 views

HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP'

I'm getting HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP' for below piece of code and patch file. can anyone help on this please. Code: namespace ...
0
votes
2answers
88 views

How tracking works for Layout service used for Mobile apps (API-Only Mode)?

I'm new to JSS, I need to use JSS Layout service to send personalized content to a Mobile App(API-Only Mode). From Jss Documentation Via Layout Service Layout Service requests are tracked on ...
1
vote
1answer
49 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: {...
0
votes
1answer
108 views

Experience Editor error when adding element to placeholder in a JSS component that doesn't by default render its placeholder

I'm using sitecore JSS, I have a component with a placeholder and I am trying to add a child component into that placeholder. I'm getting an unhelpful popup error saying An error occurred and then in ...
0
votes
1answer
93 views

JSS react app quick start disconnected mode gives “TypeError: Cannot read property 'sitecore' of null”

Newly created JSS app when started in the disconnected mode as below, tries to consume layout service and fails to load the page what could be causing this. tried creating fresh app multiple times, ...
5
votes
1answer
132 views

How to generate Sitecore Media Handler Hash?

How can I generate Sitecore Media Handler Hash to append it to URL in JSS? I'm trying to resize the image on the fly but image URL query string like /blah/blah/myimagename.jpg?w=548&h=202 ...
0
votes
1answer
45 views

What are naming considerations should follow for placeholder in any JSS app?

I am going to develop one JSS app in Sitecore. Before starting, what are best practices must follow? What are naming considerations should follow for placeholder in any JSS app?
0
votes
1answer
151 views

Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel when deploying the JSS site

This is the command : jss deploy app -c -d, I am deploying the newly created jss site in to Sitecore 9.2 Error: Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel
0
votes
0answers
74 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
0
votes
1answer
53 views

Is it possible to modify jss deploy template

We have stopped using code first jss. But we would still like to have commands like jss deploy template / jss deploy component. Unfortunately, these commands do stuff we don't want them to do, like ...
3
votes
1answer
185 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 ...
0
votes
1answer
46 views

Setting datasourceStrategy as preferAppLevel is not taking into consideration

My understanding is that if we set datasourceStrategy="preferAppLevel" when we open a route with Sitecore Experience Editor and we want to add a component the data source location should be in ...
4
votes
1answer
122 views

JSS layout api returns 404 when item requested by display name

We are trying to use display names for URLs and it doesn't work with JSS. E.g. we have a page "search" which has a display name in NL: zoeken. when I request http://localhost:3000/en/search , the JSS ...

1 2 3 4 5 6