Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
1answer
434 views

How to Render Images in sitecore jss Component?

I am new to sitecore JSS as I followed the Official sitecore documents and created an app and then Scaffold one component to this app and also rendered Few single line and rich text Fields but i am ...
0
votes
0answers
148 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
76 views

Sitecore JSS import error

While deploying to Sitecore, I'm getting the below error. Any clue as to what's causing this error. Definition looks as below. This template has no fields in it. /* eslint-disable import/no-...
0
votes
0answers
127 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
31 views

ModuleNotFound error throws when deploying files

ModuleNotFound exception throws when deploying css file. I have started to explore Sitecore-Jss and deployed sample app in the sitecore and it works fine. I just added a new css file (test.css) under ...
0
votes
1answer
167 views

Newly created JSS react app does not start and show blank page

The newly created JSS react app does not start. It shows completely blank page and shows error in the console while accessing the public URL i.e. http://jssreactweb/, Using fresh install of Sitecore 9....
0
votes
1answer
63 views

How to get app name for jss dictionary

How to get app name for jss dictionary, for request /sitecore/api/jss/dictionary///. Neither throws 404 error if not using sc_apikey or Unknown app name?
2
votes
2answers
144 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 ,...
1
vote
2answers
261 views

Why don't nested components show in the output of the JSS Layout Service?

Using the OTB sitecore installation, I wanted to JSS'ify the home node for testing purposes. By default this is setup with the following presentation details: The steps I followed were to: Update ...
1
vote
1answer
115 views

Create new user with JSS

Is there any API by which can create a new user in Sitecore with JSS?
0
votes
0answers
68 views

How to create an “articles” section of my site?

I'm building out a site using JSS and Sitecore 9.0. I want a section of my site for articles -- such as /articles/article-slug and I'm not sure the right way to approach it. Articles are also ...
0
votes
1answer
572 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 ...
3
votes
1answer
369 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
160 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
418 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 ...
2
votes
3answers
370 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 ...
0
votes
2answers
300 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
74 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 ...
2
votes
1answer
76 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 ...
-1
votes
1answer
157 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, ...
0
votes
2answers
84 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 ...
1
vote
1answer
346 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] ...
4
votes
1answer
291 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 ...
1
vote
1answer
224 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 ...
1
vote
1answer
386 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, ...
3
votes
1answer
256 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
329 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: ...
1
vote
1answer
80 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
180 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 ...
1
vote
1answer
180 views

JSS Rendering DataSource item Workflow States

In JSS datasource items, we can see "JSS Development Workflow" added. In that workflow, there are "Development Mode", "Content Mode" and "Published" states. In which state of the JSS development ...
0
votes
2answers
2k views

How to add a favicon in the root of the app

JSS VueJs sample Tech preview 3 I tried to add favicons in /assets/favicon-16x16.png Then, in /src/app/ServerHtml.js, I added: <link rel="icon" type="image/png" sizes="16x16" href="/favicon-...
0
votes
0answers
181 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
57 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 ...
0
votes
1answer
294 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 ...
2
votes
1answer
308 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
260 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 ...
1
vote
0answers
165 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
87 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
148 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
279 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
191 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
107 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
235 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
2answers
662 views

Placeholder was not found in the current rendering data - JSS sitecore 9 with VueJs

In Disconnected mode JSS Tech Preview 3 Sample vue JS I have a component : data/component-content/Footer-nav With an ID : ID__footer-nav I can link all my pages to this component perfectly: "...
1
vote
2answers
177 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. ...
0
votes
1answer
150 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
192 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
75 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
486 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
208 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 ?