Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
2
votes
2answers
25 views

Related articles in Sitecore JSS: custom rendering contents resolver or api call?

We have a requirement to show on the article page a list of articles which have the same topic and author as the current article i.e. "Related articles". I have two ideas about how that can ...
0
votes
0answers
31 views

Progressing Sitecore Helix .Net Core example to Production Build

So I am using the .Net Core Helix example from Nick Wesselman (https://github.com/Sitecore/Helix.Examples/tree/master/examples/helix-basic-aspnetcore/). I have managed to get it all up and running and ...
2
votes
1answer
60 views

How to set layout service within same Next.Js application to access multiple site?

We are configuring multiple site within single Next.js application. In experience editor the multisite work perfectly because its passing sc_site parameter as a query string. But in normal mode only ...
1
vote
1answer
27 views

GraphQL include multiple templates

How to include multiple templates in GraphQL? When I give something like below doesn't work. children(includeTemplateIDs: "{614C6C64-AD35-440E-9668-DF39D8A18CCG},{B094FD0E-D349-46C0-B829-...
5
votes
1answer
139 views

How to configure multisite in Sitecore Next.js application?

How do you implement a multisite setup with Sitecore and Next.js, with a Sitecore First Approach? Do we need to create separate Next.js apps for each site or we can we configure it in the same default ...
0
votes
0answers
34 views

JSS General Link With Search Field

I am trying to use Sitecore Field General Link With Search in Sitecore JSS NextJS. Although when I am trying to search & select the Sitecore Item in the General Link Field, I am getting the ...
0
votes
1answer
24 views

JSS Containers setup, CM container does not start or attempt to start

I'm following the JSS walkthrough with container and I'm running into an issue running the up.ps1 script. Most of the script runs fine, but when it goes to start the containers the cm container doesn'...
0
votes
1answer
32 views

Getting Started Template - File in use by another process [duplicate]

So I am doing the walkthrough: https://doc.sitecore.com/en/developers/101/developer-tools/walkthrough--using-the-getting-started-template.html Everything seems to work just fine (the occasional ...
0
votes
0answers
26 views

Including width/height in JSS JSON response for Image field

Hopefully a simple question to answer. I am looking in to adding the Width and Height values of a image to the JSS JSON response for an Image field. Is there an out-of-the-box way using some config ...
2
votes
0answers
28 views

How to make a component support a datasource item as well as being on a partial design [VueJS]

I'd like to make a component reusable whether it is a standard component with a datasource item specified, or on a partial design with no datasource and so it should fall back to using the routeData ...
0
votes
1answer
57 views

Sitecore JSS rendering host failed

I am getting below error after creating the JSS App in connected mode. Connection to your rendering host failed with a Not Found error. Ensure the POST endpoint at URL http://localhost:3000/api/...
0
votes
0answers
25 views

JSS CLI commands with --config switch

I'm trying to use the JSS CLI to deploy content and components to my local CM instance running in Docker, but with a different config file. Normally I run jss deploy files or jss deploy app and it ...
0
votes
0answers
65 views

Redirect map strategy when using Headless

What is a good strategy for handling 301 / 302 redirect maps when using Sitecore headless with SSR and the headless proxy? My current thoughts are: Need to handle SSR requests - a normal MVC approach ...
1
vote
1answer
35 views

Is it possible to pass an array data type to a react component with JSS Sitecore?

I am wanting to pass an array of string's into a react component with JSS Sitecore. At the moment, I am having to use CommonFieldTypes.SingleLineText in the sitecore component definition and splitting ...
0
votes
0answers
21 views

Headless VueJS sample - how to make devServer open in a different browser?

I'm using the headless 18 vue sample, I'd like to have the devServer open a different browser, but the open config doesn't seem to make any difference (when putting that in vue.config.js. This is what ...
0
votes
1answer
52 views

SXA Content Tokens in Layout Service

I'm attempting to use a Content Token named BrandName in a Page Title field in a multi-site headless solution (Sitecore 10.1.1 Headless 18). The hope was that I could setup the Standard Values for ...
3
votes
1answer
31 views

Fields "children" conflict because they have different arguments

When trying to access the children of the different templates at the same level. We will be getting this error Fields "children" conflict because they have different arguments. Use different ...
0
votes
1answer
18 views

Could not find file application skin file error in Sitecore Jss 10.1

For few users in Sitecore CM server while they are trying to access the content tree items, getting below attached error:
0
votes
1answer
15 views

Uncaught Loaded unexpected element while trying to get rendering HTML from server. Expecting last tag to be closing script marker - Angular JSS

"Uncaught Loaded unexpected element while trying to get rendering HTML from server. Expecting last tag to be closing script marker" in Sitecore Angular JSS version 10.1
1
vote
0answers
71 views

Connection to your rendering host failed with a Not Found error. Ensure the POST endpoint has been enabled

I am working with Sitecore 10.1 and sitecore-jss 18.0. I am getting the error - Connection to your rendering host failed with a Not Found error. Ensure the POST endpoint at URL http://localhost:3000/...
1
vote
1answer
38 views

JSS 16/18 for Sitecore 10

According to Sitecore JSS documentation, JSS 16 and 18 are only supported by Sitecore 10.1+. As Next.JS is only supported by JSS 16+, is there any way to make JSS 16 work on Sitecore 10.0 or only Next....
1
vote
1answer
53 views

What built-in/standard fields are available on the `search` GraphQL query?

I am trying to build a query that returns all items of a specific template, but can't seem to figure out if there's a "template" field available on the search query for GraphQL. Where can I ...
0
votes
1answer
29 views

Moving JSS App to JSS-SXA Site

I have implemented Jss App in sitecore 10 instance, and now I need to move the the jss app to jss-sxa site to have the sxa structure, so what I do I have moved my items to the jss-sxa site as below ...
0
votes
1answer
268 views

Build error - TypeError: Only absolute URLs are supported

When not using graphql feature npm run build fails with following error: > Build error occurred TypeError: Only absolute URLs are supported at getNodeRequestOptions (C:\Projects\TEMP\test-jss-...
0
votes
0answers
33 views

10000ms elapsed without getting a service from the pool

Sitecore 9.3 + JSS. Under heavy load we see errors in log files: Exception Message Exception: System.TimeoutException Message: 10000ms elapsed without getting a service from the pool. Source: Sitecore....
0
votes
0answers
27 views

Sitecore-JSS-form-React -- Required Validation triggers on form submission, though field has value

We are experiencing an issue with Sitecore JSS forms with react, when the form submission happens, required validation triggers for a millisecond. Scenario 1:- If we intentionally put a integer in an ...
0
votes
1answer
56 views

JSS returns 404 for media items in Richtext

I have a Legacy hybrid solution on SC 9.2 where only some page types are migrated to JSS. The issue is that if I insert an Internal Sitecore Link to a media item, it returns 404. Internal link works ...
2
votes
1answer
51 views

Jss not recognized as internal or external command while running in C#

I am calling a batch file via c# using powershell library, I see the below error 'jss' is not recognized as an internal or external command, Whereas manually executing the batch file runs with no ...
0
votes
2answers
76 views

Content Search API issue with Droplist and Treelist fields

I am facing a weird(might not be weird for experienced people) issue where ContentSearch API is returning null value for few fields while I can see the correct values in Solr. The fields whose values ...
0
votes
0answers
30 views

Embed JSS App under an authenticated page

We are using the client side embed option to embed a JSS app under a page in our portal. This portal is built on Sitecore and uses the standard username/password Forms Authentication setup. I am using ...
0
votes
1answer
90 views

How to customize sitecore layout service json response

How to customize Sitecore layout service json response completely by removing even Sitecore, context and route level and only return the custom data in the response? For one of my POCs, I have the ...
0
votes
1answer
66 views

Get all content items with presentation from GraphQL Content Search API

Is there a way to get all content items with configured layout using GraphQL Content Search API? I noticed, type children(requirePresentation: true) consists of an argument for requirePresentation to ...
1
vote
1answer
85 views

Experience Editor issue in JSS + SXA + .NET Core Rendering Host solution

I am running Sitecore Helix.Example for Sitecore.JSS + .Net Core Rendering Host. In addition it is wrapped with SXA to be able to use all SXA advantages like multisite management and so on. In normal ...
2
votes
1answer
82 views

How to add custom route in Angular JSS ? Domain/<Page>/<id>

We are working hybrid headless SSR approach. The pages have a header and footer from Sitecore with wrapper angular components as shown in the image. We should pass the id of the article from the ...
0
votes
1answer
43 views

Internal Link doesn't care for context language

I am new to Sitecore and working on a Sitecore 10.1 JSS project. For the Spanish(es) version of the page When I add an internal link in XM, it resolves the link as an English one and doesn't append es ...
0
votes
2answers
79 views

JSS 16.0 in combination with Sitecore 9.3

Due compatibility table we can use JSS 16 only on Sitecore 10. I have no ability to upgrade Sitecore, so my question - Did someone tried to install JSS 16 on Sitecore 9.3, and is it possible or ...
5
votes
1answer
70 views

Delete Sitecore JSS Items after deploy

We created a banner component using "jss banner scaffold" and deployed in sitecore using "jss deploy app -c -d". Now we want to delete this component, is their any command for ...
0
votes
1answer
85 views

Sitecore 9.2 Cache Issue

I am facing issue with caching, whenever I changed the content and hitting first time, the URL Reflected the changes while hitting the URL the second time The updated changes not reflected. e.g. I ...
1
vote
2answers
100 views

Visualization.GetRenderings returns empty string using local: data source

I am trying to index rendered content. I am using the following plugin. It works with a global data source, however, it does not index rendered content if the data source is local (local:/Data/Rich ...
1
vote
1answer
86 views

How to set up a placeholder inside of a component in JSS?

I have a React component that can be placed inside of the default jss-main placeholder. I would like this component to have a placeholder contained within it, but the placeholder does not appear in ...
0
votes
0answers
25 views

Can a Sitecore Form be hardcoded in a JSS React component?

I have a React component that I want to embed a Sitecore form into: const ContactForm = ({ title, text, route, fields, history }) => { return ( <StyledContactForm id="contact-form&...
3
votes
2answers
195 views

Using Page designs or Partial Designs in SXA JSS Site

We have built out a JSS tenant and creating pages that are rendered with React with Sitecore 10.1.1 in integrated mode (Sitecore first). Basic layouts and placeholders are working as expected. We are ...
1
vote
1answer
90 views

How to add a new property in the route object of the JSS Layout Service?

By default, the Layout Service provides the layout information as layoutId in the route object. Although it is difficult to make a connection with this information in other applications since the id ...
-1
votes
1answer
46 views

Sitecore 9.2 with JSS installation Error

I am new in Sitecore and I am working on a project it is in Sitecore 9.2 and JSS. For the installation I am referring to the below URL: https://github.com/Sitecore/Sitecore.HabitatHome.Utilities/tree/...
0
votes
1answer
103 views

XM 10.1.0 & 10.1.1 + JSS & SXA - Could not load file or assembly 'Sitecore.Analytics, Version=16.0.0.0'

Vanilla Sitecore 10.1+ install with JSS 16 and SXA 10.1 installed. After the initial install, I'm able to navigate to the Launchpad normally. After a period of time or unknown trigger, I'm unable to ...
0
votes
1answer
27 views

Sitecore 10.1 JSS Vue App zzz/myvueapp.config database web vs master on CD vs CM server

In the zzz/myvueapp.config file should the database be set to master on CM and web on CD? <site patch:before="site[@name='website']" inherits="website" ...
0
votes
0answers
51 views

Sitecore JSS General link insert JavaScript option

We are using Sitecore JSS with react. We've a General Link field in our template. Wanted to know if we can use the insert javascript option of General Link in Sitecore JSS. How can we call react ...
2
votes
0answers
57 views

Sitecore 10.1 jss 16 cannot correctly identify renderings in integrated mode

I have created jss project with react template, and I have added typescript support by installing some typescript libraries and adding to server.webpack.config.js next config: module: { rules: [ { ...
1
vote
1answer
45 views

Sitecore JSS Tracker service is not working - Goals are not triggered

I have configured the Sitecore 9.3 instance with Sitecore JSS. Deployed the default JSS App in react successfully. All JSS related pages, services are working. I have enabled the "JSS Tracker ...
1
vote
1answer
114 views

Generate XML sitemap in Sitecore JSS

I am using Sitecore 10 and Angular JSS without SXA, I did not install it, so my question is how I can generate an XML sitemap to our site?

1
2 3 4 5
10