Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
1
vote
1answer
19 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
1answer
315 views

In JSS how do I support both secure and open GraphQL endpoints?

In my JSS application, how do I support both authenticated (logged in) GraphQL endpoints and in-secure (public/open) GraphQL endpoints? The example Angular application shows the usage of only one ...
0
votes
0answers
90 views

Sitecore First Approach Can't see the component added to child placeholder

We are working on POC to test new page addition through SitecoreFirst workflow. Have added a sample template and JSON rendering to my Sitecore app from the content editor and created a route to host a ...
0
votes
1answer
41 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 ...
0
votes
0answers
19 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 ...
1
vote
2answers
275 views

After installation JSS 11.0.0 onto Sitecore 9.1, URL is not giving right response

I've installed JSS 11.0.0 onto Sitecore 9.1. URL:https://dev.sitecore.net/Downloads/Sitecore_JavaScript_Services/110/Sitecore_JavaScript_Services_1100.aspx I have added API key as mentioned here: ...
1
vote
1answer
274 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 ...
2
votes
1answer
22 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
2answers
99 views

Nodejs not part of docker in Getting Started Template for JSS to work

Nodejs is a pre-requisite for Sitecore 10 JSS and after setting up the solution for JSS with Getting started template https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-...
0
votes
1answer
15 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
9 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
0
votes
1answer
84 views

Node version issue in Multisite Sitecore jss application in Azure

I have 2 jss apps deployed to azure. Both are built on node 12.15.0 and I have WEBSITE_NODE_DEFAULT_VERSION as 12.15.0 in azure app settings but Only one of the apps is getting loaded at a time. For ...
0
votes
1answer
22 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 ...
1
vote
1answer
37 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 ...
1
vote
0answers
35 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
28 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....
2
votes
2answers
190 views

GraphQL error: Query is too complex to execute

I am using JSS with Sitecore 10, and using the GraphQL search query, but I got this error after deploying to Sitecore: ERROR Error: GraphQL error: Query is too complex to execute. The field with the ...
1
vote
1answer
70 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 ...
0
votes
1answer
152 views

Unable to run jss build command on build server: 'jss' is not recognized as an internal or external command operable program or batch file

On my TeamCity build server I am attempting to run the jss build command in one of the build steps, but it fails with the error: 'jss' is not recognized as an internal or external command operable ...
1
vote
2answers
91 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 ...
11
votes
1answer
1k 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
235 views

Manage security access for items with GraphQL

We noticed that there is no limitation on what data can be queried, all the data in GraphQL can be retrieved within the Sitecore instance. Any GraphQL request with the correct API Key can retrieve ...
1
vote
3answers
385 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. ...
0
votes
1answer
330 views

403 Forbidden when trying to create a JSS app

I'm facing this issue when trying to create my first JSS react app. That's weird because I have other members on my team who are able to make it work even if we have pretty much the same setup (or at ...
1
vote
2answers
627 views

Read values from a drop down list

New to SitecoreJSS and Angular. Using Sitecore 9.0.1 and SitecoreJSS 11.0 (Angular) Created field - "HeadingBackgroundColor" type Droplist with data source pointing to different folder (I can ...
0
votes
1answer
70 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 ...
1
vote
1answer
285 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 ...
0
votes
1answer
204 views

How to make Material UI components editable in Sitecore JSS React App?

Since I am using Material UI in my Sitecore JSS app, I wanted to know how can I make Material UI components to make it editable for experience editor? For example: How to make the below Material UI ...
2
votes
1answer
227 views

ASP.NET Core RenderingHost in Experience Editor

I'm currently testing Sc10 with ASP.NET Core Rendering Host from the following Getting Started documentation. So far the rendering host works fine but whenever I want to access the Experience Editor I ...
0
votes
1answer
197 views

Error: spawn 'Files\Git\dist\' ENOENT - The system cannot find the path specified

I have installed a fresh Sitecore 9.2 install and I'm trying to deploy an existing react solution to my local. When I run the npm build task I get the following error. > my-sitecore-site@1.2.0 ...
1
vote
2answers
122 views

Making Sitecorepath dynamic in Sitecore JSS

In Sitecore JSS, we are defining the app name, Sitecore path etc in the below section: <app name="GCP" sitecorePath="/sitecore/content/Home/JSS" appDatasourcesPath="/...
0
votes
1answer
58 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 ...
0
votes
1answer
102 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
1answer
270 views

JSS react app quick start disconnected mode gives "TypeError: Cannot read property 'sitecore' of null"

Newly created JSS app when started in the disconnected mode as below, tries to consume layout service and fails to load the page what could be causing this. tried creating fresh app multiple times, ...
1
vote
1answer
39 views

JSS Limit depth of items retrieved in linked fields

I have an App Route A for a page and is loading all the fields including a multilist that links to Item App Route B that can have in the multilist a link to Item A, creating a infinite loop. Is there ...
1
vote
1answer
44 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
0answers
26 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
1answer
44 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 ...
0
votes
1answer
73 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 ...
0
votes
0answers
15 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 ...
1
vote
1answer
64 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 ...
2
votes
1answer
44 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
1answer
50 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
28 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 ...
2
votes
1answer
178 views

Error running my first jss app - cannot start node

Following the instructions here: https://jss.sitecore.com/docs/getting-started/app-deployment I was deploying into a vanilla 9.2 site which was working fine. Step 4. Content shows up in the content ...
2
votes
2answers
156 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
328 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
1
vote
1answer
77 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
39 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 ...
1
vote
2answers
226 views

Experience Editor error: Unnamed Component JSS component missing React/Vue/Angular implementation

Error: "Unnamed Component JSS component missing React/Vue/Angular implementation. See the developer console for more information." This error is sometimes seen in Experience Editor after these ...

1
2 3 4 5
10