Skip to main content

Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
1 vote
2 answers
500 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
0 answers
41 views

Experience Editor 500 error

I'm getting the following error on certain pages (I have a Header component on this page) when I add this Header component. ERROR [JSS] Error occurred during POST to remote rendering host: `https://...
1 vote
1 answer
1k 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 ...
1 vote
1 answer
46 views

Can I use ES Modules to build JSS applications

There are two module systems used for modern JS applications - old CommonJS and ES Modules (https://nodejs.org/api/packages.html#determining-module-system). And there are different modern packaging ...
1 vote
1 answer
264 views

Get Updated and created date values in graph ql query using JSS react next js app

I am trying to fetch updated date of an item via graphql query using jss Sitecore app. I have done a bit of research and found out that I need to extend graphql schema in order to get updated date. ...
1 vote
1 answer
154 views

How do I get an item's language versions in GraphQL?

I'm using a GraphQL query that at its most basic looks like this: { item(path: "/sitecore/content/Home", language: "en") { name languages { name version ...
1 vote
1 answer
138 views

Using vhost for JSS Multi-site setup on Azure App Service

I have a headless proxy multisite setup locally using JSS. I have two sites, SiteA and SiteB. I'm using vhost in node to serve as a middleware to resolve the hostname. http://expressjs.com/en/...
1 vote
1 answer
130 views

An invalid request was sent to the Sitecore layout service

I have a Sitecore 10.3 XP installation and a Visual Studio solution with Helix, where we are implementing components. My local Sitecore CM installation is running perfectly fine. However, when I am ...
1 vote
1 answer
82 views

Deploying a JSS App Next JS to Scaled Sitecore environment (Production)

Hello Everybody I am working on a Next Js App over Sitecore it is working fine locally the app is created and working on Localhost but now I need deploy the App to production I have a Sitecore 10.3 ...
0 votes
0 answers
39 views

Set Custom request headers based on the field value for page item in jss nextjs application

In Sitecore Jss next js(13.4) application I want to set custom request headers for page item based on the check box value, every page item will have the check box in sitecore cms, If the check box ...
2 votes
1 answer
213 views

Extending or customizing XM Cloud - Sitecore Pages to support droplink editing

Is there a way to extend or customize Sitecore Pages to allow editing droplink or droptree in the side panel for XM cloud, similar to how we can edit the currently supported fields here https://doc....
2 votes
1 answer
90 views

Sitecore XMC latest metadata.js script doesn't support monorepo?

I've done this multiple times with Headless Sitecore Solutions which are not XMCloud however it appears that within the latest XMCloud version there are some additional scripts and components that get ...
1 vote
1 answer
83 views

"Cannot query field \"layout\" on type \"Query\

I am trying to work with Graph QL Endpoint "/sitecore/api/graph/items/master" in my next js app. But I am receiving error as "Cannot query field "layout" on type "Query&...
2 votes
1 answer
1k views

How do I create unique Sitecore JSS Dynamic Placeholders?

I have JSS Next.JS based component, I want to have 2 placeholders with the same key, but with a dynamic suffix. e.g. I need 2 equal columns. <div> <Placeholder name='jss-6' rendering={...
0 votes
1 answer
67 views

Sitecore + next.js 301 redirects

Is there a way to handle (receive in the middleware for example) 301/302 status code from Sitecore server returned to next.js as a response for Layout service call? I used to use custom Node based ...
1 vote
1 answer
559 views

Headless Dictionary Service not working

I am using Sitecore Headless Services Server XM 18.0.0, and the Layout Service(like: /sitecore/api/layout/render/jss?item=) is working just fine. But when I tried to use the Dictionary Service I got ...
9 votes
3 answers
4k views

The term 'jss' is not recognized while installing JSS

I'm trying to install JSS on a VM. When I run the install code, I get the following warnings: PS C:\dev> npm install -g @sitecore-jss/sitecore-jss-cli C:\Users\sitecore\AppData\Roaming\npm\jss -&...
2 votes
1 answer
79 views

manifest tagged by "latest" is not found

I am trying to run JSS with Sitecore xp1 in Docker. I am referencing the following URLs: https://doc.sitecore.com/xp/en/developers/102/developer-tools/add-sitecore-modules.html https://doc.sitecore....
1 vote
2 answers
349 views

Handle CSS and JavaScript files in Sitecore Headless Implementation

I am looking for inputs to manage Static Resources (CSS and JS files) in headless implementation. Are you having single CSS and JS files for your Website and Components? Using one CSS and JS file ...
5 votes
4 answers
4k views

Running JSS-CLI to create app I'm getting "JSS CLI is running in global mode because it was not installed in the local node_modules folder" messaging

I'm running Windows 10, node v14.5.0 and JSS v13.2.0 which is the latest at this time (I've literally just installed it). I'm trying to create an angular app with the JSS-CLI with the following: jss ...
1 vote
1 answer
335 views

Sitecore Headless Service Install on AKS

I want to deploy Sitecore Headless Service on AKS But unable to find any reference code for official and unofficial code. But I got this link for Docker for references - https://github.com/Sitecore/...
0 votes
1 answer
574 views

Sitecore experience editor not opening in editing mode (Intermittent)

We are having a Sitecore 10.3 XM NextJS docker instance. Sometimes Our Experience editor not loading properly in editing mode(loading like a regular page). This is intermittent though. This is an ...
1 vote
2 answers
59 views

ERR_HTTP2_PROTOCOL_ERROR while changing the Layout in Sitecore Headless SXA 10.3

We are working on Sitecore 10.3 SXA (Headless with Next.js). While trying to change the layout of a site, we are getting (failed)net::ERR_HTTP2_PROTOCOL_ERROR while accessing the Layout Service. Are ...
2 votes
1 answer
58 views

"Component GraphQL Query" field is ignored in Experience Editor

I installed the Sitecore 10.4 with Headless SXA and I noticed a strange behavior. On the components which has a "Component GraphQL Query" this field is ignored. On a 10.3 solution Link List ...
1 vote
1 answer
537 views

Getting error "Ensure that there is only one instance of "graphql" in the node_modules directory"

I am trying to create a Sitecore JSS app for Sitecore 10.3 with nextjs template. I keep getting the error below when I try Jss start command. I am trying to run this in disconnected mode with REST. My ...
0 votes
0 answers
32 views

Error Boundary not working in Sitecore JSS with Next.js Project

I am using Sitecore 10.3.1 with JSS-Next.js app version 21.5.3 and Node version 21.7.3. My requirement is to handle client and server errors at the component level. I am currently using the "?&...
1 vote
2 answers
48 views

Sitecore JSS: How to Hide Sitecore API Key in Client-Side JavaScript File

We have a Sitecore JSS server-side rendering mode, which uses Node.js and React.js as the tech stack. Unfortunately, the API key and API host are written in the JavaScript files. How can we avoid this?...
2 votes
2 answers
310 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-...
2 votes
2 answers
428 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?
2 votes
2 answers
3k 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 ...
1 vote
1 answer
1k 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. > [email protected] ...
2 votes
1 answer
213 views

Cd url is going to 404

I have downloaded Sitecore Next JS containers setup and installed XP1 in our local instance. But the default CD url is going to 404. The CM Sitecore url including Experience Editor & Preview and ...
0 votes
1 answer
230 views

Server side rendering engine application URL

Is there anyways I can get the ID for default internal editing host value? If i'm not wrong then when we create a project using the XM Cloud Deploy App, the project is set up with a default internal ...
1 vote
0 answers
24 views

Unable to Send FileUploadUrl in Email While using out of the box fileupload control in sitecore forms(sitecore 10.3.1)

I am using out of the box File Upload Control. While exporting the form data I receive all the fields with a file upload URL which will download the file. I am trying to send these details over email. ...
2 votes
0 answers
32 views

How to split JS bundles by page

On our JSS/Next.js site, we are running into an issue issue with poor PageSpeed performance scores, which are mostly attributable to large JS bundles. They're so large because we have one large main....
0 votes
1 answer
36 views

The new fields that added to template not appear on GraphQl schema on CD server

I am using Sitecore 9.3 with JSS, I faced issue that when i add new field on template and try to retrieve it using GraphQl Query , it is coming on CM, but gives me error on CD "message": &...
1 vote
1 answer
177 views

Headless/JSS 20 NextJS Prefetch mode

We're building a NextJS app using JSS 20. Next's prefetching behavior differs from local development: On production environments any links on a page are prefetched (for performance reasons), on local ...
0 votes
1 answer
798 views

Error during build of sample Next.js app

After creating a JSS Next.js app, I'd like to build it with jss build command and deploy, but that gives me GraphQL related error: ./src/components/graphql/GraphQL-ConnectedDemo.dynamic.tsx:114:72 ...
2 votes
1 answer
395 views

I can't access images from my containerized jss app but I can access them from outside, from my host (10.2 - with docker)

I'm rewriting the problem, to put more details. I set up a jss app in a docker container. It's working fine, even the Experience Editor has already been put to work in this environment. It turns out ...
0 votes
1 answer
361 views

SEO Friendly, Bucket-less Item Path Resolver in Layout Service

TL;DR Has anyone been able to use seo-friendly, bucketless urls with the GraphQL Layout Service? Environment Sitecore 10.2 XM Headless 20 NextJS Rendering Host SXA 10.2 SPE 6.3 Background In ...
0 votes
1 answer
114 views

Sitecore JSS is logging complete Layout data on node Proxy

Our log data on proxy server is increasing because Sitecore JSS is logging complete layout service data in logs, we want to know if there is a way to stop logging.
0 votes
2 answers
179 views

Require login headless dotnetcore

I am working on a project that is using Sitecore in headless mode with DotNetCore as the rendering host. It is hosted in Docker containers but I don't think that should matter. We have a requirement ...
2 votes
1 answer
1k views

NextJS - Cannot destructure property 'datasource' of 'props.fields.data' as it is undefined

Quiet new to NextJS JSS, I'm trying to create a NextJS component which uses integrated GraphQL. But I keep getting this error: import { Text, Link, withDatasourceCheck } from '@sitecore-jss/sitecore-...
0 votes
1 answer
2k 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/...
8 votes
2 answers
2k views

Identity server container fails to launch due to license error using headless Getting Started project in Sitecore 10 docker

Using the getting started project from Sitecore 10 docs, as per https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html the Identity server ...
0 votes
1 answer
68 views

Steps to create a mono repo with sitecore jss starter template

I am using this template to create my sitecore solution. I am planning to convert the sxastarter folder into a monorepo. So the folder structure will be something similar to this. Obviously my ...
0 votes
1 answer
70 views

Does installing JSS package on sitecore modify database schema

I am planning to install JSS package on my sitecore instance to use GraphQL APIs. I want to know wether installing JSS package change/alter my database schema or solr indexes. In case I want to ...
0 votes
1 answer
780 views

Sitecore forms with Sitecore jss(Angular app)

I am trying to use sitecore forms with Jss angular app, I find this on github and trying to use it in my app https://github.com/bic742/sitecore-jss-angular-forms the form is rendered successfull. but ...
1 vote
1 answer
285 views

Deploy NextJS Headless SXA app into XM1 Container Instance

I am trying to deploy the NextJS Headless SXA app into the Sitecore XM1+ Headless SXA Docker container. For this, i have setup the instance for Sitecore XM1 with following details: SITECORE_VERSION=...
1 vote
2 answers
636 views

Invalid graphql endpoint, Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set

I am a newbie here. I was editing the .env file for adding the graphQLEndpoints. But in between something broke and I got this error. This is the scjssconfig.json file { "sitecore": { ...

1
2 3 4 5
14