Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

95 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
26 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
42 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
68 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
52 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
15 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
29 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
36 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
81 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
25 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
37 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
43 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
0answers
43 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 ...
0
votes
0answers
46 views

Page fluctuate twice after implementing Server Side Rendering | SSR

After implementing SSR in JSS sitecore, when we load any page it will fluctuate twice, I think first client side page get loaded with some distorted html content and after that server side html get ...
0
votes
0answers
40 views

Sitecore JSS - How to implement compatible renderings?

We have used sitecore jss with reactjs, angular and svelte. We have want to implement compatible renderings in one of our components like the CTA button that implements multiple styles. We've tried to ...
0
votes
0answers
17 views

Cookies in RenderView

We have the need to set contents of the cookie on the View of the page. How do we access the "Request/Response" object in the SSR method renderView?
0
votes
1answer
43 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
52 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 ...
0
votes
1answer
54 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
55 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 ...
0
votes
1answer
54 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
38 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
0answers
64 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
114 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
128 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
0answers
130 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
48 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
1answer
157 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, ...
0
votes
1answer
64 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
0answers
93 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
0answers
53 views

Can author edit the layout with single page application with JSS and Sitecore?

Let's say I use JSS components and create the pages on the SPA frontend. There is the option to connect the frontend application with the backend. This allows authors to edit content via the ...
0
votes
1answer
162 views

In JSS how do I support both secure and open GraphQL endpoints?

In my JSS application, how do I support both authenticated (logged in) GraphQL endpoints and in-secure (public/open) GraphQL endpoints? The example Angular application shows the usage of only one ...
0
votes
0answers
37 views

Triggering goals in a GraphQL endpoint

During a GraphQL query, the Tracker is inactive, maybe because of this processor: DisableGraphQLRequestTracking in the startAnalytics pipeline. We'd like to know if we can trigger goals from a ...
0
votes
1answer
66 views

Deploy components into Common/ Shared folder

We are looking for some suggestion on the folder structure to make the components shared across multiple sites. At the moment if we deploy the components to sitecore, it’s getting created under the ...
0
votes
0answers
111 views

Why is jss app being server rendered when not in edit mode?

I was under the impression that when viewing a sitecore site locally it would render on the client if not being viewed in the experience editor. I'm trying to read/write from a cookie in one of my ...
0
votes
1answer
122 views

Sitecore JSS component invoking a web api

I had a react js application (http://localhost:3000) that invoked a web api (http://xyz) POST method. The way i accomplished that is - through the "proxy":"http://xyz" setting in the package.json of ...
0
votes
1answer
182 views

403 Forbidden when trying to create a JSS app

I'm facing this issue when trying to create my first JSS react app. That's weird because I have other members on my team who are able to make it work even if we have pretty much the same setup (or at ...
0
votes
0answers
39 views

How to make experience editor editable If List of data inside the map

I am retrieving the date from the service and I am mapping and displaying the details of what service gives in that what are the common text details which need to come from Sitecore it displays it's ...
0
votes
1answer
187 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
0
votes
0answers
330 views

Cannot read property 'value' of undefined at GraphQlElements

I am Using Connected GraphQL query to fetch the data of the item. It works fine in the GraphQL editor. But I created a component called GraphQLDemo and used the that query and fetched the data and ...
0
votes
0answers
185 views

Reading image in React app component

I have created one sample app in disconnected mode. Inside that, I have created 1 image component. It works fine in disconnected mode but when I deploy it, to my sitecore instance then it will give an ...
0
votes
0answers
169 views

Getting error after deploy the new component

I have created a new component to show Title, Description and Image. After deploying the component I am getting the following error: Minified React error #62; visit https://reactjs.org/docs/error-...
0
votes
1answer
271 views

Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80

I am getting following error Unexpected response from import service: Error: getaddrinfo ENOTFOUND http http:80 "while running this command " jss deploy app --includeContent --includeDictionary" ...
0
votes
0answers
271 views

Sitecore JSS deploy issue: Unexpected response from import status service

While trying to import a JSS app to my sitecore instance, I'm getting the below error: No errors getting logged in Sitecore log file. How to debug further?
0
votes
1answer
25 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
votes
1answer
180 views

Sitecore JSS how to get media library item directly

In Sitecore JSS, how can we refer a media item in the front end?(image ,pdf file etc) Can we use Layout Service? Any other way?

1
2