Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
14 votes
1 answer
4k views

What is JSS and how do I get started with building a JSS app?

I'm not 100% sure what JSS is and I want to experiment with some sample JSS apps and build a JSS app of my own.
Adam Seabridge's user avatar
11 votes
1 answer
3k 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 ...
Frank Rosario's user avatar
11 votes
1 answer
5k views

Cannot query field "search" on type "Query"

I would like to display in a view a list of items provided by a search on GraphQL query. Context: Sitecore 9.1 Jss 11.0.0 Jss application template : Angular Componant file heroes-connected....
Arnaud BLAVOINE's user avatar
10 votes
1 answer
1k views

How to add a route like app/payments/:id in JSS? react

How to add a route like app/payments/:id in JSS and make a component receive the id to handle it
Amr Elsehemy's user avatar
9 votes
2 answers
629 views

What is alternative of ".PageMode.IsExperienceEditor" property in JSS-react?

What is alternative of .PageMode.IsExperienceEditor property of Sitecore.Context in JSS-react to verify the ExperienceEditor context ?
Abhishek's user avatar
  • 153
9 votes
2 answers
3k views

How does Sitecore JSS impact backend Sitecore development process

Context: Currently we use Angular JS but our front end team wants to use reactJS as strategic platform. Until Sitecore JSS came out; I had been telling them that Sitecore doesn't support it. I read ...
Nil Pun's user avatar
  • 2,293
9 votes
3 answers
906 views

How to turn off "JSS Development Workflow"?

We recently switched from code-first to Sitecore-first in our JSS project. In the Sitecore-first approach we now use Unicorn to serialize/sync Sitecore structure and content. However the JSS ...
Jan-Pieter's user avatar
9 votes
1 answer
16k views

pywintypes.error: (2, 'CreateFile', 'The system cannot find the file specified while installing Sitecore Docker images

I am following the document https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html to create a test sample project for Sitecore Headless ...
Arvind Gehlot's user avatar
8 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 -&...
Andrew's user avatar
  • 85
8 votes
1 answer
326 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 ...
Rishiraj Shekhawat's user avatar
7 votes
1 answer
1k views

Sitecore 9 JSS implementation

We want to use JSS (https://jss.sitecore.net/#/) for headless development and there are a couple of things that are not very clear in the documentation. We want to preserve XP Editor functionality. ...
staccata's user avatar
  • 553
7 votes
2 answers
643 views

How should security be handled for XM Cloud/Headless with Experience Edge?

In the Sitecore documentation for Experience Edge (used by XM Cloud), it states: Experience Edge for XM does not enforce security constraints on Sitecore content. You must apply publishing ...
Richard Seal's user avatar
  • 20.4k
7 votes
1 answer
2k 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 ...
ganesh's user avatar
  • 521
7 votes
1 answer
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 ...
andyp's user avatar
  • 893
7 votes
2 answers
2k views

"Could not find JSS app configuration" error during JSS import

I'm attempting to import one of the JSS sample applications and I'm getting the following error after running the npm run package command: Fatal error occurred while running import process. Exception:...
nickwesselman's user avatar
7 votes
1 answer
563 views

Error in component using integrated GraphQL search query "Cannot read property search of undefined"

Component definition export default function (manifest) { manifest.addComponent({ name: 'Navigation', graphQLQuery: ` query NavigationQuery { search( fieldsEqual: [ ...
Anastasiya's user avatar
7 votes
1 answer
561 views

'jss bootstrap' causes JavaScript heap out of memory error on graphql-let step

I have the Nextjs sample app running in connected mode to my existing Sitecore v10.2 implementation using JSS v19. It's all working correctly - I'm able to create new components and edit them in the ...
Jonathan Robbins's user avatar
7 votes
1 answer
421 views

Update YAML Route Files as same as Connected mode, while working in Disconnected Mode

How can I update my YAML files for local disconnected mode development from Sitecore, as same as Connected mode. As We have a team who is working on Sitecore and another team is working on front-end ...
user10086702's user avatar
7 votes
0 answers
107 views

Is there a life for Sitecore .Net developers in a long-term perspective? [closed]

For a long time, .Net was a primary technology for Sitecore CEP/XP. Usually, Sitecore developers used WebForms or MVC for building websites on top of Sitecore XP and easily extended or changed the ...
Alexander's user avatar
  • 1,273
7 votes
0 answers
583 views

Sitecore JSS integrated mode performance tuning

I hope you all are doing well and safe. Today I am here to ask a question specific to Sitecore JSS performance. Category - Sitecore JSS integrated mode, performance issue Sitecore Version - 9.2, ...
Sachin Dabas's user avatar
6 votes
2 answers
3k views

Unexpected response from import service: Error: unable to get local issuer certificate

I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
Nathan S's user avatar
  • 127
6 votes
2 answers
855 views

Seeing Experience Editor markup instead of an editable field when using Sitecore JSS with React

I'm trying to output an editable field in a component of my React-based Sitecore JSS application: import React from 'react'; import PropTypes from 'prop-types'; const AwesomeComponent = ({ fields }) ...
nickwesselman's user avatar
6 votes
1 answer
4k 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/...
GSN's user avatar
  • 61
6 votes
4 answers
1k views

SXA headless with (partial) design: placeholder not found

I am using Sitecore 10.3 with SXA and JSS. For the head setup I used a post from Dan Cruickshank and that worked fine. I did get a nice blank homepage and no errors. I created 3 partial designs and ...
Gatogordo's user avatar
  • 20k
6 votes
3 answers
1k views

On content delivery server, /-/jssmedia link breaks, /-/media link works

We have deployed a jss app to a Content Delivery server. We have followed instructions to add jss support to the server role. Links to media items generated by Image components begin with /-/...
EzraM's user avatar
  • 143
6 votes
1 answer
292 views

Executing graphQL in disconnected mode

I am creating a JSS application in code first approach, so I always test the components in disconnected mode. As I have proper route files, all the pages are working as expected in the disconnected ...
Gobinath Saminathan's user avatar
6 votes
2 answers
809 views

Next.js Headless images not working from rendering / fe instance (System.UriBuilder.set_Scheme)

I'm facing issues with images on our Next.js headless application. My problem is that I always get an image error about a pipeline processor. But only when I go relative over the rendering instance ...
aklein's user avatar
  • 211
6 votes
1 answer
551 views

Current project does not support file deployment into Sitecore instance

I've created a sample nextjs app using jss cli, but when I try to deploy it using: jss deploy app it deploys items successfully, but not files and throws the message below: The current project does ...
Alexander's user avatar
  • 1,273
6 votes
1 answer
669 views

Extend GraphQL schema for custom field

I'm working on a 10.2 solution with JSS & NextJS using the GraphQL (edge) endpoint. I already noticed this endpoint is sometimes quite different compared to others and now I would like to extend ...
Gatogordo's user avatar
  • 20k
6 votes
1 answer
978 views

How to generate Sitecore Media Handler Hash?

How can I generate Sitecore Media Handler Hash to append it to URL in JSS? I'm trying to resize the image on the fly but image URL query string like /blah/blah/myimagename.jpg?w=548&h=202 ...
Izabela Wlodarska's user avatar
6 votes
1 answer
915 views

Adding component with inner placeholder breaks placeholder settings

I have component manifest.addComponent({ name: 'MyComponentWithPlaceholder', icon: SitecoreIcon.DocumentTag, fields: [ { name: 'heading', type: CommonFieldTypes.SingleLineText }, ], ...
Matěj Pokorný's user avatar
5 votes
2 answers
2k views

Headless CMS : Sitecore vs Contentful

We are currently using Sitecore for one project but did not use JSS anywhere. Other project team plans to use headless CMS and considering "Contentful" CMS for this. Could anyone please explain the ...
venkat's user avatar
  • 398
5 votes
2 answers
2k 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 ...
shimaa elsayed's user avatar
5 votes
1 answer
2k views

How can I get the current URL in the SSR of a page

In my layout.js file, I get the current URL of the page with this code: url: typeof window !== 'undefined' ? window.location.href : '', On first request of this page from the server, the url is set ...
devzero's user avatar
  • 439
5 votes
2 answers
1k views

In Sitecore JSS Multisite we will have an jss app for each Site?

We want to use Sitecore JSS (ReactBased) Framework with Sitecore 9.2 (Integrated mode). We will have 3 sites that are almost the same but they have their differences in components and content (they ...
Cristian Carazsan's user avatar
5 votes
1 answer
625 views

Code first Rendering Parameter templates

What is the best way (if any) to add a rendering parameter template to a rendering using JSS? I have looked at some of the import processors, but can’t find a simple way of doing this from javascript.
Jeppe Skovsen's user avatar
5 votes
1 answer
996 views

Sitecore license for JSS

I have to do a POC in Sitecore JSS. I understand Sitecore 8.2 license can be used with Sitecore 9.1 but I need to know if I can work with JSS using my existing Sitecore 8.2 license?
Srikant Rahul's user avatar
5 votes
1 answer
2k views

Sitecore Layout Service is returning 400 Bad Request for JSS requests

I have followed all the steps in the JSS Server Setup guide: https://jss.sitecore.com/docs/getting-started/jss-server-install And I have followed all the steps in the Configuring the Sitecore server ...
Adam Weber's user avatar
  • 2,265
5 votes
1 answer
604 views

Sitecore JSS components and Sitecore MVC components in a single Experience Editor page

Can you use Sitecore JSS components with Sitecore MVC components in the same Experience Editor page? If this does work, does it work with dynamic placeholders? An example might be adding a Experience ...
Adamsimsy's user avatar
  • 503
5 votes
2 answers
2k views

JSS Component is missing React implementation

Recently we moved from code-first to Sitecore-first approach. After deploying the react and sitecore in Sitecore-first mode, we can't see the renderings on the page. Getting below error "JSS ...
Rishi's user avatar
  • 51
5 votes
1 answer
990 views

Graphql image size

I am implementing Sitecore jss on Sitecore version 9.1. I was wondering if there is a way to specify the image size (width/height) when querying using GraphQl. Below is my current query which is ...
Fredric Foo's user avatar
  • 1,000
5 votes
4 answers
2k views

Datasource Location not working as expected

I created a rendering for my form and linked the datasource location to sitecore/forms (which should be correct). The mysterious thing about this is that when I select my rendering in the experience ...
Robin Lundgren's user avatar
5 votes
1 answer
926 views

Sitecore Experience Accelerator (SXA) site won't render as a sub route where JSS app is the root app

We have a JSS app as our site root (e.g., mydomain.com/ renders my JSS app) and want a Sitecore Experience Accelerator (SXA) website as a sub-route of the same domain (e.g., mydomain.com/sxa-site). ...
Justin L.'s user avatar
  • 201
5 votes
1 answer
337 views

JSS, is there a way to create custom types?

I am totally new to Sitecore, and a front-end developer, so please bear with me. I'm on a project that is prototyped using JSS and for some of our components we'd like to define custom types like: "...
kaneel's user avatar
  • 51
5 votes
1 answer
1k views

Integrated GraphQL is not working correctly with JSS with SXA

I've been struggling for a few days to get JSS Integrated GraphQL running on an existing SXA project. To rule out any issues being introduced by this project, I decided to go right back to square one, ...
JKD's user avatar
  • 53
5 votes
1 answer
604 views

Understanding the overhead involved with routes and definitions

I'm enjoying JSS so far but have some general questions about what I perceive as "overhead" work involved in setting up the routes, component definitions and such. If I want to add a component, this ...
The Chad's user avatar
  • 103
5 votes
3 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 ...
magenta placenta's user avatar
5 votes
1 answer
924 views

JSS layout api returns 404 when item requested by display name

We are trying to use display names for URLs and it doesn't work with JSS. E.g. we have a page "search" which has a display name in NL: zoeken. when I request http://localhost:3000/en/search , the JSS ...
Max Mayorov's user avatar
5 votes
1 answer
164 views

Providing "deeper" data to placeholders

My understanding is that the fields structure in routes data should be fairly flat, having just the fields and then a value beneath. Example: --- name: about placeholders: appname-main: - ...
The Chad's user avatar
  • 103
5 votes
2 answers
287 views

Sitecore JSS react SSR - how to setup higher environment(UAT/PROD) rendering host for experience editor

All our resources are in azure! Our Sitecore instance, front end codes are hosted as app-services! We are trying to setup rendering host for experience editor. We are looking for ideal way for SSR ...
Raj's user avatar
  • 53

1
2 3 4 5
14