Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

1
vote
0answers
28 views

Graphql image size

I am implementing Sitecore jss on Sitecore version 9.1. I was wondering if there is a way to specify the image size (width/height) when querying using GraphQl. Below is my current query which is ...
0
votes
1answer
22 views

IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Message: AddFromTemplate - Add access required

Trying to import the sample jss app into the Sitecore 9.1, but getting the below error any idea why is this is ? IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Exception: Sitecore....
4
votes
1answer
21 views

Sitecore Layout Service is returning 400 Bad Request for JSS requests

I have followed all the steps in the JSS Server Setup guide: https://jss.sitecore.com/docs/getting-started/jss-server-install And I have followed all the steps in the Configuring the Sitecore server ...
0
votes
1answer
43 views

Define Multiple Layouts in JSS - Code First

We are implementing a website using JSS in Code First approach. There is a requirement to have two different layouts in the site, Layout1 - for all the pre-login pages Layout2 - for all post login ...
5
votes
1answer
35 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 ...
0
votes
1answer
38 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 ...
2
votes
1answer
23 views

Can you setup security trimming with code first JSS?

We want to restrict some pages that are behind a login on a JSS site. We use code-first development. Is is possible to setup the security in the /data/*.yml files? Or should we update the security ...
5
votes
1answer
54 views

Executing graphQL in disconnected mode

I am creating a JSS application in code first approach, so I always test the components in disconnected mode. As I have proper route files, all the pages are working as expected in the disconnected ...
5
votes
1answer
108 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 ...
11
votes
1answer
1k views

What is JSS and how do I get started with building a JSS app?

I'm not 100% sure what JSS is and I want to experiment with some sample JSS apps and build a JSS app of my own.
0
votes
2answers
44 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 ...
1
vote
1answer
88 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 ...
6
votes
2answers
65 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 ...
1
vote
1answer
49 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 ...
0
votes
1answer
49 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
42 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?
1
vote
1answer
36 views

Adding footnote component/syntax to jss content field?

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]]...
8
votes
1answer
253 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 ...
0
votes
1answer
64 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
43 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
votes
1answer
75 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 ...
0
votes
1answer
43 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
vote
1answer
53 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
42 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
48 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
59 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 ...
0
votes
0answers
46 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
60 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
1answer
94 views

Sitecore JSS CORS issue

In connected mode, when I try preview\browse a page in Sitecore, I'm getting the below CORS error. I've CORS setting as '*' in the API key. Alternatively, I tried removing the CORS entry in API key ...
1
vote
1answer
39 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
51 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
41 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 ...
1
vote
3answers
103 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
53 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....
0
votes
1answer
47 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
24 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
74 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 ...
0
votes
3answers
49 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 ...
4
votes
0answers
97 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 }, ], ...
1
vote
1answer
68 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
2answers
40 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 ...
0
votes
1answer
131 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 ...
0
votes
1answer
85 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
70 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
43 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
54 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
26 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
40 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
33 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
82 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 ,...