Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
1answer
62 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 ...
1
vote
1answer
188 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?
1
vote
1answer
117 views

Create new user with JSS

Is there any API by which can create a new user in Sitecore with JSS?
1
vote
1answer
228 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
229 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 ...
1
vote
1answer
245 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 ...
1
vote
1answer
61 views

Write acces blocked by Sitecore JSS workflow

I have an issue that I cannot fix atm. We created a new Security role and assigned rights to it. However Content Editors that have this role cannot edit any items as the JSS Workflow currently ...
1
vote
1answer
365 views

Getting 404 error when retrieving items through Layout API

I'm working with the React JSS Basic example. I created a new item based on the default "Welcome" component and I'm trying to retrieve it through JSS. Here is my Sitecore tree : To get Welcome-1 ...
1
vote
1answer
57 views

Sitecore JSS with Vue - Json are not identical between connected and disconnected mode

In disconnected mode I have a "value" that I don't have in connected mode. So if I need to do this: {{ fields.items.value.length }} it's working only in disconnected mode and not after a deploy... ...
1
vote
2answers
267 views

Sitecore Jss config deployment error

Can somebody help me to resolve this error which I am getting when deploying the same ReactBasicApp using sitecore jss [InstallationException]: Could not find JSS app configuration for 'my-...
1
vote
2answers
60 views

Droplist item returns name instead of “display name” for the component

I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/...
1
vote
1answer
72 views

How do I enable .babelrc for JSS

Coming from C#, I really like the below code var prop = item.prop?.propname Syntax. This is supported in JS if you use the below code @babel/plugin-proposal-optional-chaining Babel plugin. ...
1
vote
1answer
47 views

Sitecore JSS component datasource xPath query

I am having following content tree Sitecore Content myapp home -Products -Product-1 Related-Products-1 (based on Related-Products custom template) – having multi-list field in which we can ...
1
vote
2answers
65 views

How is deviceId determined for JSS pages

I'm looking at a JSS page in connected mode. I log the route to the console and note that there is a property, deviceId, which matches the device called Default. There are multiple devices in this ...
1
vote
1answer
236 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 ...
1
vote
1answer
101 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
82 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
vote
1answer
440 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 ...
1
vote
1answer
334 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
184 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
252 views

JSS SSR headless mode vs api only for personalization

Are there in any difference in personalization usage when using JSS SSR headless mode vs jss api only mode (with layout services where can use personalization). We are in process of getting jss ...
1
vote
1answer
1k views

JSS vueJs - How to include vue-meta for server rendering

JSS Tech preview 3 vueJs sample basic I'm looking to include vue-meta for Server Rendering. I've successfully added it for Client Rendering, but, because the tutorial to include vue-meta is very ...
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 ...
1
vote
1answer
554 views

Rendering Sitecore.JavaScriptServices

Can somebody help me on this Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Cannot read property 'context' of undefined TypeError: Cannot read property '...
1
vote
1answer
61 views

Could not load file or assembly 'System.Web.Helpers…` when loading JavaScript files [closed]

We have deployed Sitecore 9.2 with JSS on a production environment and when accessing page, page gets loaded but in the network tab, we see none of the js file gets loaded. it throws 500 error. When ...
1
vote
1answer
57 views

GraphQL datasource is empty with Integrated JSS App

I have a query that is working in the GraphiQL UI : query GetBreadcrumb($datasource: String!) { datasource(value: $datasource) { ...mySelectedFields parent { ...mySelectedFields ...
1
vote
1answer
61 views

Adding new components/content to existing application

I'm still pretty new to JSS/Sitecore and am trying to wrap my head around some of the concepts. One thing I don't understand is if its possible to create new layouts/templates on an existing app and ...
1
vote
1answer
70 views

GraphQL Filter on PageType

I have been successfully using GraphQL to filter on items assigned to a specific template. Is it possible to do the same with items of a certain PageType?
1
vote
1answer
68 views

Using JSS Sitecore 9.1 with scaled architecture

I have installed Sitecore 9.1 XP scaled(XP1) topology so I have sitecore.cm ,sitecore.cd and other app roles installed (REP, PRC, etc). I have configured JSS and am able to use it with sitecore.cm . ...
1
vote
1answer
96 views

What is the cause of the error - Rendering ID was not present in the rendered renderings context?

I am getting a strange error when deploying a JSS application to Sitecore and running in Integrated mode. Rendering data contained rendering reference ID 6cc52330-7130-49a8-9585-5b9b8d946847 but ...
1
vote
1answer
142 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 ...
1
vote
1answer
117 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
140 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
1answer
336 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
289 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
389 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, ...
1
vote
1answer
256 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
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. ...
1
vote
2answers
374 views

Sitecore JSS installation error

I am getting the below error once I installed the Sitecore JSS server packages Preview 4. I have follwed the same steps mentioned in https://jss.sitecore.net/docs/getting-started/jss-server-install ...
1
vote
1answer
205 views

How can i add an svg with a sc-link JSS with VUE JS?

I want to add svg icons in the footer with links <sc-link>, how can i do that?
1
vote
1answer
200 views

How can I share data from one component in JSS with Vue Js?

As a developer, I want to change data from a component in ONE place, so that I don't need to duplicate this data for each pages How can I ask to my src/app/components/header-nav.vue <template&...
1
vote
0answers
34 views

No application configuration file found

We have deployed our Sitecore JSS Application to the CM and CD Server (Azure VM). The site is up and running but some js and css files in root/dist/$name folder are throwing 500 Internal Server Error. ...
1
vote
0answers
22 views

Analytics ID has been flagged as robot traffic even when AutoDetectBots is set to false for Layout Service call?

I am using Layout Services API call to get data from Sitecore. Layout Service API is working fine and i am getting a response back in json format. My xDB is enabled and working fine for other ...
1
vote
0answers
47 views

Accessing an Image SRC from code

I'm working on a Sitecore JSS site, Angular framework, disconnected mode. I'm trying to access the SRC attribute of an image field in my components ngOnInit method. Stepping through the code, it ...
1
vote
0answers
24 views

Getting 404 not found error with Sitecore.HabitatHome.Omni on http://habitatfitness.dev.local/sitecore/api/habitatfitness/sports/facet?sc_apikey={key}

I was doing some research on Sitecore.HabitatHome.Omni. It is working fine at my local instance but getting an error while setting up personalization. I got a 404 status code while submitting the form ...
1
vote
0answers
45 views

Personalization is not working in Layout Service call?

I only installed Sitecore JavaScript Services Server for Sitecore 9.1.1 XP 11.1.0 rev. 190508.zip to check Layout Services and nothing else. My jss layout service is absolutely working fine with url ...
1
vote
1answer
29 views

Get the item from a ReferenceField type in Sitecore JSS based on Langauge version

I am working on a multi-lingual site where the data source has multiple language versions. I want to retrieve the items of multilist based on the language parameter passed. Sitecore GraphQL query: {...
1
vote
0answers
107 views

Unhandled Rejection (TypeError): Cannot read property 'sitecore' of null

I ran the command jss start:react , getting the error. Error occured while trying to proxy to: localhost:3000/sitecore/api/jss/dictionary/myjssapp/en?sc_apikey=no-api-key-set. I am working on a ...
1
vote
0answers
26 views

Sitecore 9.2 JSS with Solr 7.5 , JSS route items and its subitems are not indexing

Currently we are developing Sitecore JSS app with React frontend. in this we are using Headless SSR mode to create the content in sitecore and rendering. our application is working fine with React, ...