Questions tagged [react]

React is a JavaScript library for building user interfaces. This tag can be used for all questions related it.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Emulator proxy port 3042 not working in disconnected mode using sitecore JSS CLI

I have installed the latest JSS CLI V21.7.0, after the 'jss start' command the Sitecore contents are displayed using the port 'http://localhost:3000'. But I want to create and configure scjssconfig....
Priyadarshini's user avatar
0 votes
0 answers
148 views

How to dynamically import a component in sitecore jss inside next js application?

I know the conventional way of dynamically importing a component : const Report = dynamic(() => import('PowerBIComponent'), { ssr: false, }); But since application uses [...path] to catch ...
Nishant's user avatar
3 votes
0 answers
287 views

How to render link / text field as seamless button in Experience Editor

Imagine we have a link field ctaLink and a text field ctaText which are rendered as follows: <div className={styles['cta']}> <Link field={fields?.ctaLink as LinkField} className={styles['...
Marcel Gruber's user avatar
1 vote
1 answer
267 views

How do you create Components with children like Tabs, Carousels, Search Results or List of Cards?

I am just transitioning from Sitecore MVC to SitecoreNextJs. I have been able to create simple components fairly easily, but haven't been able to create components with children, like tabs, carousels, ...
Anthony Fernandes's user avatar
1 vote
1 answer
508 views

No fields and placeholder received from Layout API on JSS

I just started developing JSS applications last week and was using the JSS version 13 since our Sitecore version is 9.3 and look for some help with issues I encountered so far. I tried to deploy ...
Lala's user avatar
  • 397
3 votes
2 answers
1k views

New JSS app will not start: GraphQL requests to Dictionary and Layout services are not supported in disconnected mode

I'm following along with Discover Sitecore's "Build Your First JSS App" video (https://www.youtube.com/watch?v=XNQGsr9_34A) and was only 2:10 in when I ran into my first issue. All I've done ...
Michael's user avatar
  • 57
0 votes
2 answers
529 views

How is Integrated mode configured for a Sitecore JSS React app?

We have a Sitecore JSS app that has been working for some time in both Disconnected and Connected mode, locally in Docker and hosted on Azure App Services. It runs in the CM environment, and on a Node ...
sussexrick's user avatar
0 votes
1 answer
546 views

Sitecore requests give a 404 in connected mode

I'm using Sitecore 10.1 with JSS 16.0.0. In connected mode when I visit a Sitecore path, it gives a 404 error. For example:- http://localhost:3000/sitecore/api/layout/render/jss?item=%2F&sc_lang=...
Jeroen Breuer's user avatar
1 vote
0 answers
123 views

Debug Sitecore JSS React while SSR

How can I debug the JSS React application while using SSR, how to run the application with SSR in local machine with default npm commands?
Denis Lee's user avatar
2 votes
0 answers
248 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
0 votes
1 answer
365 views

Sitecore headless with React frontend - JSS or SC 10? [closed]

We would like to gradually migrate our current Sitecore 9.2 MVC site to a headless architecture. For the frontend we would like to use React. Considering that Sitecore 10.1 just released with ...
Hos's user avatar
  • 884
0 votes
0 answers
461 views

Guidance on storing data in Sitecore Context or Local/Session Storage

We are building a React app using Sitecore JSS and we want to store some data about the user. The data is either info we want to store while the user is logged in (e.g. cache the user profile ...
KingTwinkie's user avatar
0 votes
0 answers
294 views

Failed prop type: Invalid prop `errorComponent` supplied to `PlaceholderComponent`

I'm trying to improve error handling for my app, so I've create a very simple component ErrorComponet.jsx: import React from "react"; const ErrorComponent = (props) => { return (<...
devzero's user avatar
  • 439
1 vote
1 answer
230 views

JSS Deployed to Docker Container: Links to media files missing port number

When I deploy a JSS app to a Sitecore instance running in a Docker Container and run our applications in Integrated Mode, our application is accessible with a hostname and port number (e.g. http://jss....
KingTwinkie's user avatar
2 votes
1 answer
795 views

How to embed Youtube & Vimeo videos in Sitecore JSS with React

I have create a video player component in Sitecore jss/react. I have tried with react-player player plugin. It is working fine in disconnected mode but as soon as I deployed it in Sitecore, it is ...
amit kumar's user avatar
2 votes
1 answer
486 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
0 answers
138 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
1 vote
1 answer
425 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 ...
sgm's user avatar
  • 11
1 vote
2 answers
659 views

Droplist item returns name instead of "display name" for the component

I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/...
devzero's user avatar
  • 439
4 votes
1 answer
2k views

Is it possible to combine Sitecore 9.1+DotNet+React Js

I have a requirement in my project. It is an existing project which is developed in Dotnet MVC + Sitecore 9.1, so some part of the page in that project needs to be implemented in react js, for example,...
Durga Prasad's user avatar
0 votes
0 answers
242 views

Reading image in React app component

I have created one sample app in disconnected mode. Inside that, I have created 1 image component. It works fine in disconnected mode but when I deploy it, to my sitecore instance then it will give an ...
pratik kshirsagar's user avatar
1 vote
2 answers
921 views

Newly created JSS react app does not start and show blank page

The newly created JSS react app does not start. It shows completely blank page and shows error in the console while accessing the public URL i.e. http://jssreactweb/, Using fresh install of Sitecore 9....
Sitecore Sam's user avatar
  • 1,163
1 vote
1 answer
1k views

Error on typings using JSS Text with Typescript

I'm getting an error on the fields property when using Typescript from this tutorial class Profile extends React.Component<Props, State> { constructor(props: any){ super(props); } ...
Luuk's user avatar
  • 375