Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
3
votes
1answer
224 views

What’s the best practice to Expose Sitecore 9 APIs for Mobile Apps Development? [closed]

Currently, I am looking Sitecore CMS solution for native mobile app development. Mobile App Team is using Swift for IOS and Java for Android. So we have a limitation to use JSS react native for ...
0
votes
1answer
354 views

Sitecore Filtering by Field Value on Query of GraphQL

I am currently working on trying out the Sitecore GraphQL Query where I just get all the items of a specific location in the Sitecore Tree. However, I may need to filter the item results based on a ...
0
votes
1answer
131 views

SXA datasource token is not working for Sitecore JSS rendering component

we are adding a JSS rendering component in SXA site. We have added the below query in JSS component data source location. query:$site/*[@@name='Data']/*[@@templatename='Content Blocks Folder'] It ...
0
votes
1answer
263 views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

I am using Sitecore 9.1. I can able to run my sample angular application in connected mode using the command ">jss start:connected". But i cant able to open my site in local integrated mode , even in ...
0
votes
1answer
588 views

Sitecore JSS SSR issue : window not defined

We are using react as client framework for building a SPA. In disconnected mode it works well but then in integrated mode I see the below error when we browse the page or preview it. Any clue as to ...
2
votes
3answers
266 views

Get Items from data source folder by JSS/React

I have this react component (rendering) which has a data source (a folder with items). Is there any way to get those items and render their fields in react component? In props was passed ...
2
votes
1answer
272 views

Unexpected response from import service: Error: unable to get local issuer certificate

I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
0
votes
2answers
225 views

Get items from rendering datasource in JSS

I have rendering that has been wrote in React and JSS. Sitecore displays rendering with static content. Is there any example how to get rendering datasource items and display Link fields from them ...
0
votes
1answer
68 views

Dictionary data structure issue

I would like to maintain my form labels in Dictionary and fetch through Dictionary Service in JSS. I would like to add the labels to a dictionary folder inside the Dictionary node in Sitecore. When I ...
-1
votes
1answer
136 views

Sitecore cannot find placeholders for JSS

There is a problem. Sitecore site with JSS frontend. In experience editor everything is fine, but in normal mode pop up mistake: Placeholder 'header' was not found in the current rendering data, ...
1
vote
1answer
199 views

Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process

getting the below error at Experience editor for Home item. Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Failed to start Node process. To resolve this: [1] ...
0
votes
2answers
75 views

Why does 'jss build' with Vue and Typescript miss out our components in the compiled output?

We're setting up some Vue components so that they are defined to use Typescript via the lang attribute on the script tag: <script lang="ts">. When running jss start:connected this all behaves ...
4
votes
1answer
226 views

How would you best configure JSS to work with multiple Sitecore <sites>?

One of the key benefits I can see from moving to JSS is the way developers can work with the different tools. In particular the lure of Hot Module Replacement (HMR) adds such a lot of positives for ...
0
votes
1answer
147 views

Sitecore jss angular sample application having empty body

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. After deploying angular sample app, Site ui has empty body ...
0
votes
1answer
69 views

Resolving dependencies using Unity for deploying sitecore jss app

We are using Unity for the dependency injection overriding the default behavior for the sitecore project. While deploying the jss app, I am getting below error: The current type, Sitecore....
2
votes
2answers
125 views

best practice for fetching authoring fields in sitecore jss

Ours is a SPA app being built using Sitecore JSS. One of the pages has the requirement to show client info. But the actual client data comes from an API. But the content labels (like Description ,...
2
votes
1answer
56 views

How to share templates and renderings between multiple JSS apps?

I am exploring Sitecore JSS, and able to create new renderings, templates for my app. Since we've to create all templates and renderings for the given App, wondering how can we create templates, and ...
0
votes
1answer
244 views

Import process fails : “Unexpected response from import service: Status message: Found”

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. I cant able to deploy the app while running deploy command, ...
2
votes
1answer
169 views

Profiling Sitecore 9.1 JSS Server-Side-rendering node server

JSS site is running in integrated mode on Sitecore 9.1 I have problem with the SSR node process, it's hanging around 18 min on load tests and results in error 500 for site. For blind solution I ...
1
vote
1answer
232 views

Get the Property of an item from a ReferenceField type in Sitecore JSS (react)

I am currently working on a Sitecore JSS in which I am using GraphQL to retrieve data in Sitecore. I have field named ArticleTag in my context item which is a (Droptree) Sitecore GraphQL query: ...
8
votes
1answer
464 views

Experience Editor Support in JSS (headless)?

We're using Sitecore 9 for a greenfield project. One of the topics of discussion is whether or not we want to use EE vs. Headless. I'm not going to ask the pros vs cons of using one over the other, I ...
1
vote
1answer
59 views

Sitecore 9.0 Update-1 JSS create sample app throw error : Error: connect ECONNREFUSED 192.X.X.117:443

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. Finally I can test my component like below and its working. ...
1
vote
1answer
127 views

JSS Question about itemlink field type

For a fresh installed Vue-JSS application, we have some examples in the /Styleguide route. One of them is SharedItemLink. From /data/routes/styleguide, we can see that sharedItemlink is a field of ...
6
votes
1answer
164 views

Update YAML Route Files as same as Connected mode, while working in Disconnected Mode

How can I update my YAML files for local disconnected mode development from Sitecore, as same as Connected mode. As We have a team who is working on Sitecore and another team is working on front-end ...
0
votes
0answers
155 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
45 views

Add new version of an item when deploying the content from JSS

We are developing the JSS application in SSR headless mode. There will be more than 10 developers working at a time, when going through the options to deploy the content from JSS to Sitecore we ...
2
votes
1answer
211 views

How to verify if Sitecore JSS is installed correctly

How do I verify if the JSS server package is installed correctly in sitecore? I have installed "JSS Server package - Sitecore JavaScript Services Server for Sitecore 9.0 11.0.0 rev. 181031" by ...
0
votes
1answer
262 views

Deploy JSS App on sitecore instance

While bulding JSS app i am getting an error. Command : JSS Build Error: ERROR in Error during template compile of 'StyleguideAngularLazyLoadingModule' Function calls are not ...
0
votes
1answer
168 views

Set the different Language from jss component

We are trying to implement the multilingual site in JSS. When user logged in we are showing a drop down to select the language and based on the selection we want to set the language. Question her is ...
0
votes
0answers
126 views

Cannot read property 'datasource' of undefined at GraphQLIntegratedDemo

I create Sample Sitecore JSS React application and all pages are working fine except GraphQL. When I run GraphQL link, I am getting below error On Reload the page I am getting error I run below ...
1
vote
0answers
156 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
1answer
70 views

Replacement for Sitecore.Context.Database.Name in JSS?

is there any replacement for Sitecore.Context.Database.Name in JSS..? just trying to know the list of conteproperties are ac
4
votes
1answer
132 views

Sitecore, JSS and GraphQL: licensing question

The question is pretty simple: can I use the GraphQL from JSS package without JSS license?
0
votes
1answer
200 views

How to remove 'route' object in Sitecore jss layout service api response?

When I get the data from http://{domain.name}/sitecore/api/layout/render/jss?item=/&sc_apikey=[api-key] Then response is like {sitecore: {context:{something}, route:{something}} But I don't want ...
2
votes
0answers
155 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 ...
0
votes
1answer
93 views

invalid json response body - Headless SSR mode

Followed the steps in the below link to setup the headless SSR mode https://jss.sitecore.com/docs/techniques/ssr/headless-mode-ssr but it the app never comes up and always received an error saying ...
1
vote
1answer
195 views

Virtual Login in Sitecore 9.1 using JSS

We are implementing the JSS in headless SSR mode, we would like to know a way to virtually login to Sitecore from our JSS components. I mean the user authentication will happen with an external system ...
1
vote
1answer
197 views

Error when trying to scaffold an Angular component

With a fresh install of the jss cli and creating an Angular application jss create test-app angular when I try to generate a component I get the following error: Component testComponent is ...
0
votes
1answer
120 views

How to mock Sitecore Context Data in LayoutService for JSS disconnected mode?

Where can I usually mock (for JSS disconnected mode) additional layout service data that I put into the layoutservice response by a "JssGetLayoutServiceContextProcessor". So if I add additional ...
2
votes
1answer
153 views

Deploy Sitecore Jss React App to Azure Content Delivery

I tried to deploy my JSS React App to Azure scaled CD. I got my Jss App deployed to Azure CM successfully and it's working as expected. Steps to deploy to Azure CD The Azure scaled CD was setup by ...
-1
votes
1answer
64 views

How to extend Manifest file

I have created a solution for package importing POC in my local. So, I was following the steps at Import Pipeline Extension I have projects structure like in screenshot: But, I am not sure about ...
2
votes
2answers
419 views

JSS Default Angular App Build Error: Cannot find name 'Exclude'

Install JSS: npm install -g @sitecore-jss/sitecore-jss-cli create default react app - runs in Chrome: jss create jss-react-app react cd jss-react-app jss start create default ...
8
votes
2answers
176 views

What is alternative of “.PageMode.IsExperienceEditor” property in JSS-react?

What is alternative of .PageMode.IsExperienceEditor property of Sitecore.Context in JSS-react to verify the ExperienceEditor context ?
5
votes
1answer
214 views

Sitecore Experience Accelerator (SXA) site won't render as a sub route where JSS app is the root app

We have a JSS app as our site root (e.g., mydomain.com/ renders my JSS app) and want a Sitecore Experience Accelerator (SXA) website as a sub-route of the same domain (e.g., mydomain.com/sxa-site). ...
2
votes
2answers
188 views

Embed a Sitecore JSS app/component within an existing non-Sitecore website

Could you let me know please if there is a possibility to embed a Sitecore JSS app/component in an existing non-Sitecore website? To be more explicit our client has multiple external non-Sitecore ...
3
votes
1answer
100 views

Remove and/or rename fields in Sitecore JSS via template definitions

Is there is way to remove or rename a field in Sitecore JSS via template definitions? Even with an ID on the field, it won't rename. Deleting the field object will not delete the field in Sitecore. ...
1
vote
2answers
146 views

Error loading site in connected mode: Unknown type GraphQLConnectedDemo

Following the tutorial everything is looking good. The app deploys with no errors using jss deploy app --includeContent --includeDictionary. I can see the content in Sitecore so thats all good. ...
1
vote
1answer
182 views

JSS LayoutService decoupled from Routing in Angular

Is it possible to decouple the use of the LayoutService from all of the Routing code and use it independently? We are upgrading an AngularJS application to Angular and have incorporated JSS but are ...
5
votes
1answer
120 views

JSS, is there a way to create custom types?

I am totally new to Sitecore, and a front-end developer, so please bear with me. I'm on a project that is prototyped using JSS and for some of our components we'd like to define custom types like: "...
1
vote
1answer
216 views

API mode can be implemented with the Plain react application

Can we implement the API only mode in JSS with a plain react application.? or do we need to have react app created through the JSS. Also trying to see a sample app or steps to do the API only mode ...