Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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, ...
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 ...
2
votes
3answers
99 views

Unexpected error processing reply from import status service

I have Sitecore 9.3 version and followed the steps described here https://jss.sitecore.com/docs/getting-started/jss-server-install to setup JSS server. I am not able to deploy the app while running ...
0
votes
1answer
9 views

Submit data from contact-us form and saving it to Sitecore using sitecore JSS - Angular App

I am using Sitecore 10 with JSS - Angular App, I have a contact-us form in page and I need to submit the data of form and save it to Sitecore tree. What is the best solution to do this?
0
votes
0answers
9 views

Sitecore Forms with Jss Angular APP [closed]

I am using sitcore 10 with Jss angular App, I need to use sitecore forms, I find this Question and i will try to follow the steps, How to use Sitecore forms with Sitecore jss(Angular app) but what i ...
2
votes
1answer
32 views

The arabic version not deployed to Sitecore from JSS App

I am using Sitecore 10 with JSS and my app is built in Angular. After deploying the app to Sitecore I found that the Arabic version of the pages is not deployed to Sitecore, while the English version ...
2
votes
1answer
26 views

JSS Workflow - How to default newly create items to Content Mode?

Sitecore 10.1, JSS 16 I am using a user with the sitecore/Author role that I have added access to "write" when items are in the "Content Mode" state. However when I create a new ...
0
votes
1answer
21 views

Error: spawn 'Files\Git\dist\' ENOENT - The system cannot find the path specified

I have installed a fresh Sitecore 9.2 install and I'm trying to deploy an existing react solution to my local. When I run the npm build task I get the following error. > my-sitecore-site@1.2.0 ...
1
vote
1answer
47 views

Error running `jss deploy app`: TypeError: logReplies.forEach is not a function

When running: jss deploy app --includeContent --includeDictionary --acceptCertificate XX:XX:XX:XX:XX:XX... I get the error: Sitecore has accepted import task JSSImport-myapp-2:59:34 PM Unexpected ...
1
vote
1answer
37 views

GraphQL error: Query is too complex to execute

I am using JSS with Sitecore 10, and using the GraphQL search query, but I got this error after deploying to Sitecore: ERROR Error: GraphQL error: Query is too complex to execute. The field with the ...
0
votes
1answer
270 views

GraphQL Search Query INVALID_OPERATION

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

Sitecore Forms CORS/Verification token error in Chrome, works in Firefox

I am trying to submit a form in Angular, through JSS. In chrome, I get a CORS error complaining the access-control-allow-origin header is missing. Just for fun, I added this to ...
2
votes
2answers
45 views

How to use rendering parameters in shared component using Sitecore JSS

I am using Sitecore 10 with Angular app JSS, I created shared component "Header" like that: I have a rendering parameters background field, I need to add it in yml files of pages to be ...
2
votes
2answers
92 views

JSS: Azure deployment

In our case, both test and prod environments are Azure app services. So currently when we deploy to test: I replace the layoutServiceHost and deployUrl in scjssconfig.json to be the address of QA ...
0
votes
1answer
51 views

Sitecore headless with React frontend - JSS or SC 10? [closed]

We would like to gradually migrate our current Sitecore 9.2 MVC site to a headless architecture. For the frontend we would like to use React. Considering that Sitecore 10.1 just released with ...
0
votes
1answer
46 views

Raw HTML in a Multiline text field in Sitecore 9.3

I created a new field in a template, it is a Multi-Line Text(name html field). I created a component and added on the page. I go to experience editor. click on the component to edit it. The html ...
0
votes
1answer
101 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" }] ) { ...
-1
votes
2answers
34 views

Nodejs not part of docker in Getting Started Template for JSS to work

Nodejs is a pre-requisite for Sitecore 10 JSS and after setting up the solution for JSS with Getting started template https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-...
1
vote
1answer
280 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
1answer
64 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
1answer
62 views

A potentially dangerous Request.Path value was detected from the client (:) [closed]

I followed the steps on https://jss.sitecore.com/docs/client-frameworks/getting-started/app-deployment to get my local starter app connected to my local sitecore install. In the nextjs app it works ...
0
votes
1answer
32 views

Does installing JSS package on sitecore modify database schema

I am planning to install JSS package on my sitecore instance to use GraphQL APIs. I want to know wether installing JSS package change/alter my database schema or solr indexes. In case I want to ...
2
votes
1answer
268 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 ...
2
votes
1answer
120 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 ...
0
votes
1answer
82 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
374 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" ...
1
vote
0answers
51 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 ...
3
votes
1answer
29 views

Adding a list of objects to Context Data returned by Layout Service

I was working on a project that needed some data passed on through the context. Logic was implemented based on https://jss.sitecore.com/docs/techniques/extending-layout-service/layoutservice-extending-...
1
vote
1answer
188 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 ...
3
votes
1answer
50 views

How to get ContentBlockModel/Component Model from PageModel directly using asp.net core rendering sdk

I am following the document https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html to create a test sample project for Sitecore Headless ...
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 ...
0
votes
0answers
20 views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: document is not defined

I am using sitcore 10 with JSS and after deploying my angular app to sitecore, i got this error when trying to open the home page in experience editor. Error Rendering Sitecore.JavaScriptServices....
1
vote
1answer
48 views

Relative item path in layout service call is not working

I am trying to access Sitecore 10.1 item via layout services and it is working fine with GUID and full path. But when I am trying to access it via a relative path from the current app, it is not ...
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 '{...
2
votes
2answers
640 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 ...
1
vote
0answers
46 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-...
2
votes
1answer
46 views

What are the steps I could follow to debug non-functioning JSS app integrated mode?

My JSS app does not render in integrated mode: http://my-first-jss-app.dev.local/en-US/. The header renders (with logo, documentation styleguide links) but the content does not. What are the steps I ...
0
votes
1answer
241 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 ...
1
vote
1answer
67 views

Null refrence exception for RenderingExtensions.IsSerializable

Sitecore 9.3 JSS What is happening: Many a time, we are getting 500 from the layout service. In the log we have the following entry: ERROR Exception during Layout Service RenderItem (configuration: ...
1
vote
1answer
23 views

Generated “componentFactory.js” doesn't cater for named exports?

(SiteCore newbie here) I'm currently working on a JSS React project. I created an Icons component which will export different icons as named exports: export const Icon1 = () => <svg>...</...
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/...
0
votes
1answer
53 views

How to identify contacts using Reactjs

I have LoginComponent in ReactJs with username and password. How can I store the logged in user details in xDB through ReactJs ? In case if I am creating an webapi to store the details using Sitecore....
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 ...
0
votes
1answer
97 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 ...
1
vote
0answers
29 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 ...
0
votes
1answer
46 views

JSS + Sitecore Forms: “unable to verify the first certificate”

New to JSS. Trying to use Sitecore Forms + JSS for the first time, I followed JSS documentation, creating a form in Sitecore; when I run jss deploy component Form --allowedplaceholders jss-main, I get ...
0
votes
0answers
15 views

How to preload Vue async component with Sitecore JSS?

We are using Vue with Sitecore JSS and trying to do code splitting following the example for React (https://kamsar.net/index.php/2018/08/Code-splitting-with-Sitecore-JSS-React/) to improve our initial ...
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: ...
1
vote
1answer
228 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 ...
0
votes
0answers
33 views

Error Rendering: Empty strings are not allowed. Parameter name: id

Running our Sitecore JSS site regularly produces following (cryptic) error: Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Empty strings are not allowed. ...

1
2 3 4 5
9