We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

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

How does one convert Sitecore JSS React boilerplate to typescript?

Is there a guide of some kind or possibly some helpful information floating around regarding the addition of typescript in a Sitecore JSS react boilerplate project? So far I've only been able to get ...
4
votes
1answer
117 views

In JSS Integrated Mode, how can I log errors / console output from Node to a custom logger instead of the Sitecore log?

By default, the JSS Node.js rendering engine captures console output / errors emitted by the Node instance(s) rendering your JSS app and logs the output / errors to the default Sitecore log. I would ...
7
votes
2answers
164 views

How to turn off “JSS Development Workflow”?

We recently switched from code-first to Sitecore-first in our JSS project. In the Sitecore-first approach we now use Unicorn to serialize/sync Sitecore structure and content. However the JSS ...
2
votes
1answer
117 views

Is graphQL data editable through Experience Editor

We are working in JSS integrated mode, in one of the page we need to retrieve the child items from a folder and render them. As we are implementing the site in integrated mode, we expect the features ...
1
vote
1answer
112 views

Define NameValue List in JSS

I am just trying to define NameValueList in one of my JSS component. Looks like there are only defined set of fields available in CommonFieldTypes [@sitecore-jss/sitecore-jss-manifest]. Is there a way ...
1
vote
1answer
49 views

Adding footnote component/syntax to jss content field? [closed]

I'm looking for a way to allow content editors to add legal footnotes/disclosures within inline content. My initial thought was to instruct them to use some sort of syntax, such as [[disclosure=12.34]]...
0
votes
1answer
264 views

Search query error “Cannot query field \”search\“ on type \”Query\"

I'm trying to get data using GraphQL query with using search and get it when testing at /sitecore/api/graph/items/master/ui window - search really work, but when I look at the React component data ...
0
votes
0answers
88 views

Fetching Placeholder data using GraphQL | Jss

I am able fetch datasource data and Context Item data using graphQL query. I want to fetch placeholder's data of that rendering. My query is like: query IntegratedDemoQuery($datasource: String!, $...
1
vote
1answer
60 views

Are individual yml files needed for each component param option?

As an example, I'll use a generic content Block component. This component, among other params, would have a columnSpan param. As far as I can tell, the only way to predefine options for that param is ...
0
votes
1answer
69 views

JSS Import renderings into Shared Layout on Presentation Details

When importing a Sitecore JSS App, we noticed that the default behavior is the renderings are added in the Final Layout in the Presentation Details in the item. Is there a way to change the default ...
1
vote
1answer
221 views

Fetching Multiple Item Data using GraphQL

I want to fetch multiple item data using single query. I am able to fetch the data of single item. My tree structure is like: Item1: Title Description Item2: Title Description ...
2
votes
1answer
325 views

404/500 error page implementation - ReactJS client

We are working on Sitecore JSS with react js client side. We need to implement 404 and 500 error pages in Sitecore JSS application. There may be chances of adding multiple Sitecore JSS sites. How ...
1
vote
1answer
186 views

How to get Standardvalues from Sitecore GraphQL

I am trying to get the sortorder value from Sitecore GraphQL and it is not recognizing the field. Any config needs to be updated ? Am i missing some thing here?
0
votes
0answers
239 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 ...
1
vote
1answer
57 views

Can Sitecore JavaScript Services (JSS) be used with a Sitecore Experience Manager (XM) configuration?

Does Sitecore JavaScript Services (JSS) require Sitecore Experience Platform (XP) or can it be used with a Sitecore Experience Manager (XM) configuration?
0
votes
2answers
139 views

GraphQL Authentication

I have create react component of connected GraphQL. It's giving me proper data. I have created user and assign roles and giving permission for the root. I want to pass his credentials with that query ...
1
vote
1answer
129 views

Fetching data using GhraphQL Query Api mode

I have setup the sitecore Jss react app to my sitecore instance. I am using layout service api to get the data in JSON form. It is giving data properly. When I am using GhraphQL Query to fetch the of ...
0
votes
1answer
107 views

CORS and Media Library Resources

I have a Lottie animation JSON object that I want to use in all my various JSS Angular apps hosted from different domains. Ideally, I'd have that animation file in the Media Library so it can be ...
0
votes
1answer
107 views

Getting a blank page after deploying JSS-React application on server (Tech preview 4)

I am Getting a blank page after deploying JSS-React application on server (Tech preview 4) with two console warning 1) Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www....
1
vote
1answer
313 views

JSS Setup script failing with: Assertion `args[1]->IsInt32()' failed

Following the JSS quick start instructions I do: npm install -g @sitecore-jss/sitecore-jss-cli jss create my-first-jss-app react cd my-first-jss-app jss start Next step I go to is to run JSS Setup ...
1
vote
1answer
98 views

JSS sitecore multiple projects under same solution

Hi i am following Helix principle in JSS sitecore first approach. I am new to react. I need to have a multiple projects under same solution setup. Here my solution sample. SafariZoo is my project ...
1
vote
2answers
71 views

Sitecore jss dictionary service returns the same values

Sitecore jss dictionary service returns the same values. In one moment dictionary contained one values and after change config to get that dictionary values not from default dictionary, i get them but ...
-1
votes
2answers
134 views

Maintain sitecore items in repository in jss sitecore first approach like Unicorn, Jss-cli OR TDS

Hi I am using Sitecore jss with sitecore first approach. My sample solution is under here sitecore.first-jss-helix.git. Currently i am maintaining in repository all my sitecore related content items ...
0
votes
3answers
153 views

Sitecore JSS does not deliver dictionary entries from pathes specified in config files

Sitecore JSS does not deliver dictionary entries from pathes specified in config files. https://xxx.local/sitecore/api/jss/dictionary/xxx/en?sc_apikey={6B8DB342-F35D-481F-8C16-87B7319B6F6E} returns ...
1
vote
1answer
397 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 ...
5
votes
0answers
250 views

Adding component with inner placeholder breaks placeholder settings

I have component manifest.addComponent({ name: 'MyComponentWithPlaceholder', icon: SitecoreIcon.DocumentTag, fields: [ { name: 'heading', type: CommonFieldTypes.SingleLineText }, ], ...
0
votes
0answers
146 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
50 views

How to add custom processor that always hit when the Page requests

I want to create a custom processor to be patched (intended for redirect the page based on some logic) for JSS pipeline. Any possibility?
0
votes
0answers
75 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
125 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
160 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" ...
2
votes
3answers
146 views

Pesonalization rule for the page - not component level

is there any way to show the separate page based on personalisation rule? i need to show one page when the user is authenticated and another page when user is not authenticated. Personalization is ...
0
votes
1answer
162 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
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
59 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?
1
vote
1answer
258 views

Error on typings using JSS Text with Typescript

I'm getting an error on the fields property when using Typescript from this tutorial class Profile extends React.Component<Props, State> { constructor(props: any){ super(props); } ...
-1
votes
1answer
225 views

Sitecore JSS Custom RenderingContentresolver help

We are using JSS for one of our clients. We have a requirement to fetch child items upto n level.So we built a custom rendering content resolver for it. It's working well in connected mode. Now if we ...
1
vote
2answers
246 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
113 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 ...
3
votes
1answer
318 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
499 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
155 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
382 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 ...
1
vote
1answer
2k views

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
347 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
369 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
286 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
71 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
154 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, ...