Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

Filter by
Sorted by
Tagged with
2 votes
1 answer
411 views

Unable to fetch Image with server url in GraphQL

I am using Sitecore 10.2 in my local as headless and nextjs for frontend. I was trying experience editor, I was able to edit the components in experience editor. Now Images are not showing in Site ...
Mahesh Patil's user avatar
2 votes
1 answer
790 views

GraphQL Search Query non-Edge

I'm using a non-edge GraphQL endpoint to leverage keyword search and faceting in my content search queries. This means that I'm using the Sitecore.Services.GraphQL.Content.Queries.SearchQuery class ...
Chet Cheeto's user avatar
2 votes
1 answer
509 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 ...
ganesh's user avatar
  • 521
2 votes
1 answer
214 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-...
S.Kazmi's user avatar
  • 906
2 votes
1 answer
305 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 ...
sns's user avatar
  • 351
2 votes
1 answer
698 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 ...
Marcel Gruber's user avatar
2 votes
1 answer
111 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 ...
Maulik Darji's user avatar
2 votes
1 answer
133 views

JSS Workflow - How to default newly create items to Content Mode?

Sitecore 10.1, JSS 16 I am using a user with the sitecore/Author role that I have added access to "write" when items are in the "Content Mode" state. However when I create a new ...
Liam's user avatar
  • 51
2 votes
1 answer
81 views

The arabic version not deployed to Sitecore from JSS App

I am using Sitecore 10 with JSS and my app is built in Angular. After deploying the app to Sitecore I found that the Arabic version of the pages is not deployed to Sitecore, while the English version ...
shimaa elsayed's user avatar
2 votes
1 answer
241 views

How to POST data to JSS Route

I am using Sitecore JSS in integrated mode. I have below scenario and need help to achieve it. When user will login to the web site, he can be part of one or more groups. After login user will see the ...
Alok Kumar's user avatar
2 votes
1 answer
120 views

Generated "componentFactory.js" doesn't cater for named exports?

(SiteCore newbie here) I'm currently working on a JSS React project. I created an Icons component which will export different icons as named exports: export const Icon1 = () => <svg>...</...
Teknotica's user avatar
  • 121
2 votes
1 answer
119 views

What are the steps I could follow to debug non-functioning JSS app integrated mode?

My JSS app does not render in integrated mode: http://my-first-jss-app.dev.local/en-US/. The header renders (with logo, documentation styleguide links) but the content does not. What are the steps I ...
user1586279's user avatar
2 votes
1 answer
65 views

Can we use SXA Search Functionality with JSS pages

With Sitecore 9.2 and JSS, can we use the SXA search functionality and configuration (scopes and boosting etc.) with JSS ? Has anyone done this or did you encounter any specific issues?
Steve Ward's user avatar
2 votes
1 answer
436 views

How to use Sitecore forms with Sitecore jss(Angular app)

Can anybody please help with any reference of how to use sitecore forms with sitecore jss angular app. For react application library is available "npm i @sitecore-jss/sitecore-jss-react-forms&...
kunal gawra's user avatar
2 votes
1 answer
466 views

Value cannot be null. Parameter name: element

After I input the command with the certificate jss deploy app --includeContent --includeDictionary --acceptCertificate ww:ww:11:.... Following error shows up.I'm using Sitecore 9.0.2 and doing the ...
Zayed Ahmed's user avatar
2 votes
1 answer
360 views

SitecoreJSS DateField is not able to format date coming from GraphQl query

I'm getting a Date from GraphQl query. When I get the result, it is coming as 20200415T123050Z. If I try to format using <DateField field={item.publishDate} render={(date) => date....
Kanchan's user avatar
  • 97
2 votes
2 answers
1k 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 ...
Sunil's user avatar
  • 77
2 votes
1 answer
509 views

Method not found: 'Sitecore.JavaScriptServices.ViewEngine.Pipelines.GetRenderEngineFactory.GetRenderEngineFactoryArgs.get_RenderEngineType()

I am working on Sitecore JSS and created a sample application. When I am trying access with the new hostname, configured in the app patch file, I got below error. 35472 12:00:27 ERROR Failed to ...
Arvind Gehlot's user avatar
2 votes
1 answer
427 views

Sitecore Remote Initial Setup Error: Could not find JSS app configuration

I'm following the guide to deploy jss components created locally with Vuejs into Sitecore. Everything seems to work except for the deployment part. The following is my setup file: "sitecore": { ...
maltesers's user avatar
2 votes
1 answer
221 views

How to share templates and renderings between multiple JSS apps?

I am exploring Sitecore JSS, and able to create new renderings, templates for my app. Since we've to create all templates and renderings for the given App, wondering how can we create templates, and ...
Yogesh Patel's user avatar
  • 1,007
2 votes
1 answer
395 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 ...
Jeppe Skovsen's user avatar
2 votes
2 answers
1k views

The current user does not have write access to this item. User: sitecore\JssImport,

I am trying to setup the Sitecore JSS,getting error when executing the command. jss deploy app --includeContent --includeDictionary Skipping data update of /sitecore/content because item already ...
Sivalingaamorthy's user avatar
2 votes
1 answer
365 views

How to change between the two languages ​in my navigation with VUE.JS and JSS Sitecore?

I want to create a multilingual site with vue.js and JSS, I added in the folder data/route/en.json and fr.json, I don't know how to change between the two languages ​​in my navigation.
Yosra Ben Brahim's user avatar
2 votes
1 answer
69 views

Sitecore JSS Rendering issue on server bundle with experience editor

I'm having an issue with Sitecore JSS, where I'm upgrading from Vue 2 to Vue 3. After clicking on the specific form builder, this is the error that I receive: I can't seem to find the token it's ...
Pongramer's user avatar
2 votes
1 answer
46 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....
NutsAndBolts's user avatar
  • 1,310
2 votes
1 answer
112 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....
sq___'s user avatar
  • 43
2 votes
1 answer
135 views

Is there a way to set fields on the Sitecore Headless / JSS Settings for the site via environment variables?

Prior to SXA-JSS you could define the JSS Site settings in the config and therefore be able to use environment variables for things like the serverSideRenderingEngineEndpointUrl. Is there a mechanism ...
Mark Gibbons's user avatar
  • 5,432
2 votes
0 answers
255 views

Mock useSitecoreContext in Nextjs unit tests

I'm trying to write simple unit tests with Jest and mock useSitecoreContext. When I'm mocking the useSitecoreContext like this: useSitecoreContext: jest.fn() I'm getting an error "Cannot ...
Max's user avatar
  • 21
2 votes
1 answer
279 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 ...
Fillippe Prata's user avatar
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-...
Nil Pun's user avatar
  • 2,283
2 votes
0 answers
226 views

Sitecore JSS not working with Pinia/Vuex

I am having issues trying to integrated [email protected] with Sitecore JSS App built from version 15.0.2. The sample app uses "vue": "~2.6.10". When I am running the app locally in ...
Arun Kumar's user avatar
2 votes
0 answers
319 views

Sitecore 10 JSS docker setup

I am new to Sitecore JSS but have been doing development using Sitecore for 5 years. I am trying to set up JSS on my docker image. I have been successfully able to update the docker file for CM & ...
Arun Kumar's user avatar
2 votes
0 answers
209 views

"jss-main" was not found in the current rendering data while using node-headless-ssr-proxy with React

I am developing the JSS react template with node-headless-ssr-proxy for my company's solution, the react application have been migrated with Redux and dynamic routes, it can run and work normally in ...
Denis Lee's user avatar
2 votes
1 answer
1k 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'...
NDaigle's user avatar
  • 21
2 votes
0 answers
30 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 ...
Mark Gibbons's user avatar
  • 5,432
2 votes
0 answers
123 views

Sitecore Virtual login and accessing userProfile.context during layout service execution

we are working on custom personlization rules with user data available outside sitecore. App is developed in jss in ssr mode. With sitecore login setting up virtual user context when user logged in to ...
Akanksha's user avatar
2 votes
0 answers
75 views

Is there a change in GraphQL Schema between JSS version 11 and 14?

I am currently using sitecore 9.0.2 and have installed JSS to query the data using graphQL queries. I use below features of JSS: Querying data using http://sitecore.local/sitecore/api/graph/items/...
Ajit Singh's user avatar
2 votes
1 answer
351 views

Null refrence exception for RenderingExtensions.IsSerializable

Sitecore 9.3 JSS What is happening: Many a time, we are getting 500 from the layout service. In the log we have the following entry: ERROR Exception during Layout Service RenderItem (configuration: ...
NutsAndBolts's user avatar
  • 1,310
2 votes
0 answers
242 views

Personalization on Layout Service not working when calling from JSS App

My Sitecore CD website in IIS is http://cd.my-website.com with a role as ContentDelivery. This site contains Sitecore and custom API code in Headless mode. The React code for the JSS app is on a ...
Maulik Darji's user avatar
2 votes
0 answers
279 views

A rendering error occurred: Cannot read property 'fields' of undefined

Trying to add RouteType item (as provided in samples on creating a new JSS app). Once I add in experience editor, it appears fine like below But as soon as I click save, I got below error message. ...
Amit's user avatar
  • 19
2 votes
0 answers
103 views

Running jss cli commands from c# class

Im trying to run jss cli commands (Windows Powershell) from my C# Class. I`m creating the commands dynamically, but i noticed that jss commands are not running. PowerShell ps = PowerShell....
Fernando Feks's user avatar
2 votes
0 answers
66 views

How to set a Datasource explicitly in yml file and change it when I go for personalization?

I'm using Jss react. I want to pass a datasource to a component which is coming from a different location (not from component itself or sitecore context). I want to use personalization so the ...
Kanchan's user avatar
  • 97
2 votes
0 answers
44 views

Can I create a native android app by retrieving data from Sitecore?

Current situation I have Sitecore 9.3. My Sitecore runs locally inside a vm. I've created a jss website and deployed it to sitecore following the official guide. What i want I want to create an ...
Zayed Ahmed's user avatar
2 votes
0 answers
211 views

Not able to edit text inline in button tags

I am using Sitecore 9.3 with JSS. I have created few components that have buttons. The button labels are editable in sitecore. The issue is when I edit those button labels inline, e.g, I need to add ...
NewbieHere's user avatar
2 votes
0 answers
122 views

React owl.carousel $ not defined in preview but working in edit mode

I'm having an error right now with owl-carousel. I have it imported in some of my components in react jss and it is throwing error when I'm on Preview in Experience Editor but working perfectly when ...
Jay's user avatar
  • 73
2 votes
0 answers
223 views

Create new content missing when adding a component in experience editor

I'm using Sitecore 9.3 with JSS 13. When I try to use the add here and select one of my components I get the Select the associated Content dialog box. This box is missing the create new content ...
devzero's user avatar
  • 439
2 votes
0 answers
452 views

Images are broken on Safari Browser [closed]

I'm using Sitecore 9.1, JSS and ReactJS. Some of the images are not showing on Safari but working fine on Chrome. Here's a sample url: /-/media/Intelligence-Bank/Folder/Folder/Logo/Logo.png?h=422&...
JSS Man's user avatar
  • 51
2 votes
0 answers
860 views

jss build does not change hash on files when outputHashing is set to all

We are now going to production and are noticing the jss build and jss deploy files are not updating the hash on the file names when the content changes. This is causing cache busting to not work and ...
Chris Bartlett's user avatar
2 votes
1 answer
480 views

While opening the jss app item in experience editor getting Error: EPERM: operation not permitted, lstat

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: EPERM: operation not permitted, lstat 'D:\sitecore' Error: EPERM: operation not permitted, lstat 'D:\...
sns's user avatar
  • 351
2 votes
0 answers
405 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 ...
Mark Cassidy's user avatar

1
3 4
5
6 7
14