Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
0answers
42 views

How do I get my SSR proxy to site resolve the LayoutService for my JSS/SXA Site?

We're on Sitecore 9.2, SXA 1.9, JSS 12. previously On 9.1, we had the following setup: JSS App sitting in /sitecore/content/myapp A site definition that mapped a hostName to our /myapp A JSS ...
1
vote
0answers
57 views

Unexpected response from import service: Status message: Found

Fresh new Sitecore XP 9.2 + JSS 12.0 and trying to deploy an OOTB react JSS app. The ApiKey is created (with two * for test only). The Layout Service is responding on /sitecore/api/layout/render/jss?...
1
vote
1answer
42 views

Define a content list and populate it

I'd like to define a field in a component that would display a set of values that my contributors could choose when using my component. Let's say that my field is a ratio, I want the users to be able ...
1
vote
0answers
64 views

How to get Item from ItemID in JSS? [closed]

I am trying to understand how to fetch Item from ItemID in JSS. What is alternative for Sitecore.Context.Database.GetItem(new ID("{11111111-1111-1111-1111-111111111111}")) in JSS?
1
vote
0answers
46 views

JSS Headless mode issue

I am trying to run my local jss app in headless mode. while trying to hit the jss service, I am not getting the expected o\p. I can the security info object has 401 as statuscode. If I try hitting ...
1
vote
0answers
48 views

What is the best way to flatten structure

I have a structure where directly below the /home node I wish to have all the stores. Each store should have information like opening hours and address. This data was created as a component. This ...
1
vote
0answers
109 views

How to render a component after a async request with React & Sitecore JSS?

I have a simple article page. I should have an infinite scroll implementation, meaning once a user has reached the bottom of the page, I should load the next article. How can I render a component ...
1
vote
2answers
144 views

Access Referenced Items using Integrated GraphQL

I am having following content tree: In GraphQL (GQL), if I am rendering Product-1 (current context item) and wanted to access all the categories where Product-1 referenced in the multi-list field of ...
1
vote
1answer
51 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]]...
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 ...
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 ...
1
vote
0answers
188 views

Sitecore Experience Editor with JSS SDK

We have a requirement of using Angular page along with Sitecore 9 JSS SDK. There are two components on the Angular page where first component gets data from Sitecore and other pulls data from API. ...
1
vote
0answers
407 views

Configuration error in JSS Sitecore Quick start for development

Configuration error while browsing Sitecore basic jss app after performing deployment steps mentioned in below link: https://jss.sitecore.net/#/setup/app-deployment?id=app-deployment
0
votes
2answers
309 views

Which frontend is more supported by JSS?

In my company we feel comfortable with VUE Angular React But I'm not sure which of the three, JSS is a "best fit" for, or which will be most supported in the future. Will any of them be a better ...
0
votes
1answer
74 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 ...
0
votes
1answer
67 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?
0
votes
1answer
108 views

Switching from JSON to YAML

The basic-sample-react-native project comes with the data routes setup in a JSON file. Can you tell me what the steps are for using a YAML file instead? I swapped out the JSON file for a valid YAML ...
0
votes
2answers
672 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: "...
0
votes
1answer
514 views

Strange working of dictionary in Sitecore JSS

I am experiencing strange workings of the dictionary in Sitecore JSS. As mentioned in https://jss.sitecore.net/#/sitecore-net-dev?id=for-sitecore-net-developers, I have created an item of template /...
0
votes
2answers
96 views

Which need to choose JSS Tracker vs Layout Service for Personalization?

As per link JSS Personalization, In a JSS site, there are several paths to collecting analytics like via JSS Tracker and Layout Service. Which one is better suite for this purpose?
0
votes
1answer
787 views

Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/

I have an error when running in connected mode (jss start:connected) [HPM] Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/xlbygg/data/media/img/sc_logo.ashx from localhost:...
0
votes
2answers
144 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 ...
0
votes
1answer
588 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
295 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
2answers
2k views

Couldn't find preset “env” relative to directory Error while upgrading to JSS Update 2

Getting error while running jss start at my local, attached screen shot for same." Couldn't find preset "env" relative to directory "~\jss-master\jss-master\samples\basic-sample-react" Trace: [1]: ...
0
votes
1answer
41 views

Unable to use Sitecore Forms with JSS

I have followed the Sitecore Forms + JSS integration official documentation here: https://jss.sitecore.com/docs/techniques/forms#sitecore-forms--jss . But I am unable to find the Sitecore Forms ...
0
votes
2answers
48 views

How tracking works for Layout service used for Mobile apps (API-Only Mode)?

I'm new to JSS, I need to use JSS Layout service to send personalized content to a Mobile App(API-Only Mode). From Jss Documentation Via Layout Service Layout Service requests are tracked on ...
0
votes
1answer
95 views

Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel when deploying the JSS site

This is the command : jss deploy app -c -d, I am deploying the newly created jss site in to Sitecore 9.2 Error: Could not load type Sitecore.Jobs.Job from assembly Sitecore.Kernel
0
votes
1answer
44 views

Can I set a custom NPM repository to be used by JSS?

Is there a way I can set a custom NPM repository to be used by JSS when running a jss deploy? I have a package dependency which is hosted in a dev repository (for the moment) and this is breaking my ...
0
votes
1answer
33 views

Access Denied when using Mutation to create Item JSS Graphql

I created a form that when a user submit, values on that form will be created as field values of a new Sitecore Item. However, I encountered an error response from the GraphQL execution of Access ...
0
votes
2answers
107 views

Sitecore API key shown in Network tab

As you can see in the image above, the API key is clearly visible to all people to see. If you simply follow the URL you get the message: { "errors": [ { "message": "No query ...
0
votes
1answer
129 views

Can we use helix principle into JSS application?

We can apply Helix principles for back-end(C# MVC) application for modular architecture. Can we use Helix principles for JSS application? Is it recommended to use Helix for front-end application(JSS)...
0
votes
3answers
166 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 ...
0
votes
1answer
244 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
426 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
2answers
302 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 ...
0
votes
1answer
266 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
1answer
90 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
0
votes
1answer
285 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 ...
0
votes
1answer
321 views

Sitecore JSS error when creating quick start app with Vue template

I'm trying to create a disconnected JSS vue app using the quick start guide, by running the following commands: npm install -g @sitecore-jss/sitecore-jss-cli jss create jss-app-vue vue cd jss-app-vue ...
0
votes
1answer
205 views

Nested Components Scaffolding

I'm currently setting up a new JSS project using the JSS React boilerplate and I ran into an issue regarding the scaffolding of components. When using the scaffolding script I can use jss scaffold Foo ...
0
votes
2answers
239 views

Access denied while importing sample react app to Sitecore

I have installed JSS tech preview 4 and trying to import the sample react app "sitecore-embedded-jss-app". When running jss deploy app or jss deploy app -c -d , I get the message Forbidden - ...
0
votes
1answer
70 views

How to add / view component items to / in a route

I have some questions about adding items on Sitecore route. Here is an example : I created MyCarrousel item that display images. My Sitecore tree : Content (directory) MyCarrousel (item) Home (...
0
votes
1answer
79 views

JSS deploy vueJs - then I need to manually Unprotect Layout to add my placeholders

Currently, each time I'm doing deploying jss using jss deploy package -c -d I need to manually unprotect the Item of my App Layout to include my placeholders. Any ideas how to stop this? Thanks
0
votes
1answer
43 views

Is it possible to modify jss deploy template

We have stopped using code first jss. But we would still like to have commands like jss deploy template / jss deploy component. Unfortunately, these commands do stuff we don't want them to do, like ...
0
votes
1answer
40 views

Setting datasourceStrategy as preferAppLevel is not taking into consideration

My understanding is that if we set datasourceStrategy="preferAppLevel" when we open a route with Sitecore Experience Editor and we want to add a component the data source location should be in ...
0
votes
1answer
92 views

After installation Sitecore 9.2 with SXA not able to create JSS Tenant and site

I have installed Sitecore 9.2 with supported SXA on my local environment, but not able to create JSS Tenant as describe in Sitecore help document. When we logged-in sitecore I can see the only Tenant ...
0
votes
1answer
133 views

Code structure in Multisites Scenario

We want to use Sitecore JSS (ReactBased) Framework with Sitecore 9.2 (Integrated mode. We have multisite environment where each site is subset of Global Site. It means templates/rendering created in ...
0
votes
1answer
41 views

JSS connected mode enters experience editor mode

When I'm working with the local web server (jss start:connected) and at the same time I log into the actual instance of sitecore (dev.test.com) and go to the experience editor. The local version get's ...