Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
1answer
106 views

Publishing/Deploying React JS Sitecore JSS app

We are working on application using React JS for UI using Sitecore JSS. We are able to import the app into sitecore, could see content items created, published the website. We can run the app (hosted ...
0
votes
1answer
41 views

Why do I not see Create / Copy To links in the Experience Editor?

I want to be able to add a JSS component to a placeholder in the Experience Editor by creating a new content item, but after I select the rendering I do not see the Create or Copy To links. I am only ...
0
votes
1answer
213 views

Sitecore GraphQL Search query not working - Error trying to resolve search [duplicate]

I have the checked my instance and search query is enabled. I am getting the below error when i testing my search query in xGraph Browser Query query{ search(keyword:"smart"){ results{ ...
0
votes
1answer
135 views

Define Multiple Layouts in JSS - Code First

We are implementing a website using JSS in Code First approach. There is a requirement to have two different layouts in the site, Layout1 - for all the pre-login pages Layout2 - for all post login ...
0
votes
1answer
110 views

CORS and Media Library Resources

I have a Lottie animation JSON object that I want to use in all my various JSS Angular apps hosted from different domains. Ideally, I'd have that animation file in the Media Library so it can be ...
0
votes
1answer
114 views

Getting a blank page after deploying JSS-React application on server (Tech preview 4)

I am Getting a blank page after deploying JSS-React application on server (Tech preview 4) with two console warning 1) Cross-Origin Read Blocking (CORB) blocked cross-origin response https://www....
0
votes
1answer
171 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....
0
votes
1answer
31 views

ModuleNotFound error throws when deploying files

ModuleNotFound exception throws when deploying css file. I have started to explore Sitecore-Jss and deployed sample app in the sitecore and it works fine. I just added a new css file (test.css) under ...
0
votes
1answer
161 views

SXA datasource token is not working for Sitecore JSS rendering component

we are adding a JSS rendering component in SXA site. We have added the below query in JSS component data source location. query:$site/*[@@name='Data']/*[@@templatename='Content Blocks Folder'] It ...
0
votes
2answers
84 views

Why does 'jss build' with Vue and Typescript miss out our components in the compiled output?

We're setting up some Vue components so that they are defined to use Typescript via the lang attribute on the script tag: <script lang="ts">. When running jss start:connected this all behaves ...
0
votes
1answer
92 views

Resolving dependencies using Unity for deploying sitecore jss app

We are using Unity for the dependency injection overriding the default behavior for the sitecore project. While deploying the jss app, I am getting below error: The current type, Sitecore....
0
votes
1answer
57 views

Add new version of an item when deploying the content from JSS

We are developing the JSS application in SSR headless mode. There will be more than 10 developers working at a time, when going through the options to deploy the content from JSS to Sitecore we ...
0
votes
1answer
150 views

How to mock Sitecore Context Data in LayoutService for JSS disconnected mode?

Where can I usually mock (for JSS disconnected mode) additional layout service data that I put into the layoutservice response by a "JssGetLayoutServiceContextProcessor". So if I add additional ...
0
votes
1answer
86 views

Does anyone know, if Sitecore-JSS-React application supported in Service Fabric cluster

I am trying to deploy JSS-React app in Service Fabric cluster, does anyone know if - Sitecore-JSS application supported in Service Fabric? - Can I create .net Core application for this?
0
votes
1answer
85 views

Inline style React components not working

Is there any way to use inline style for the JSS React components? I have tried: const inlineStyle = { width: '100%' } const Example = () => <Image style={ inlineStyle } /> But the ...
0
votes
2answers
251 views

JSS Vue - getting error in server.bundle on deploy

This is a similar issue to this one: JSS vue - Error with server.bundle.js after jss deploy package But unfortunately I can't comment on that one because my rep is not high enough. I believe the ...
0
votes
1answer
801 views

JSS start connected mode issue

JSS start connected mode issue, using JSS Tech Preview 4, React, Sitecore 9 Update2. Here is the complete log. jss.sc/sitecore/api/jss/dictionary/my-first-jss-app/en?sc_apikey={078944F4-4AAB-4086-...
0
votes
1answer
70 views

Any way to remove disconnected manifest processing?

I'm working on migrating a legacy Sitecore site to JSS. In order to support the field types that they have in the existing site I have to support fields that do not conform to the predefined ...
0
votes
2answers
2k views

How to add a favicon in the root of the app

JSS VueJs sample Tech preview 3 I tried to add favicons in /assets/favicon-16x16.png Then, in /src/app/ServerHtml.js, I added: <link rel="icon" type="image/png" sizes="16x16" href="/favicon-...
0
votes
1answer
300 views

Placeholders in my component doesn't show in Sitecore connected mode after a deploy - JSS - vueJs [closed]

As a developer, I want my placeholder to be rendered in sitecore, so that I can add more components inside First of all, in disconnected mode, everything is fine: 1 - I have a placeholder named : ...
0
votes
1answer
250 views

Latest Angular basic sample Error

I'm trying to go through all the Angular tutorial from the JSS.Sitecore side but I came across multiple issue. The examples don't match the code that is getting generated Getting missing modules ...
0
votes
0answers
40 views

Push notifications in Sitecore 9.2 and JSS

I'm using sitecore 9.2 with JSS and Azure search. I am searching for an out of the box way to push notifications to sitecore users. I found this link talking about notification center but I think it'...
0
votes
0answers
18 views

HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP'

I'm getting HTTP Error 500.0 - Could not find type 'GeoIP.GeoIPInformation.ExampleContextExtension,GeoIP' for below piece of code and patch file. can anyone help on this please. Code: namespace ...
0
votes
1answer
60 views

Experience Editor error when adding element to placeholder in a JSS component that doesn't by default render its placeholder

I'm using sitecore JSS, I have a component with a placeholder and I am trying to add a child component into that placeholder. I'm getting an unhelpful popup error saying An error occurred and then in ...
0
votes
1answer
64 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, ...
0
votes
1answer
39 views

What are naming considerations should follow for placeholder in any JSS app?

I am going to develop one JSS app in Sitecore. Before starting, what are best practices must follow? What are naming considerations should follow for placeholder in any JSS app?
0
votes
0answers
55 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
0
votes
0answers
39 views

Can author edit the layout with single page application with JSS and Sitecore?

Let's say I use JSS components and create the pages on the SPA frontend. There is the option to connect the frontend application with the backend. This allows authors to edit content via the ...
0
votes
1answer
60 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
30 views

Triggering goals in a GraphQL endpoint

During a GraphQL query, the Tracker is inactive, maybe because of this processor: DisableGraphQLRequestTracking in the startAnalytics pipeline. We'd like to know if we can trigger goals from a ...
0
votes
1answer
37 views

Deploy components into Common/ Shared folder

We are looking for some suggestion on the folder structure to make the components shared across multiple sites. At the moment if we deploy the components to sitecore, it’s getting created under the ...
0
votes
0answers
61 views

Why is jss app being server rendered when not in edit mode?

I was under the impression that when viewing a sitecore site locally it would render on the client if not being viewed in the experience editor. I'm trying to read/write from a cookie in one of my ...
0
votes
1answer
66 views

JSS Tracking API example fetch errors

I am trying to use the JSS Tracking API, according to https://jss.sitecore.com/docs/fundamentals/services/tracking, with Sitecore XP 9.1. Following the example code: import { trackingApi } from '@...
0
votes
1answer
51 views

Sitecore JSS component invoking a web api

I had a react js application (http://localhost:3000) that invoked a web api (http://xyz) POST method. The way i accomplished that is - through the "proxy":"http://xyz" setting in the package.json of ...
0
votes
0answers
56 views

Sitecore Hybrid solution with MVC and React js [duplicate]

We recently upgraded to Sitecore 9.1 from 8.1. We have an MVC application. We would eventually like to get into the Sitecore headless mode. But since rewriting the whole application is not an option, ...
0
votes
1answer
61 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 ...
0
votes
0answers
31 views

How to make experience editor editable If List of data inside the map

I am retrieving the date from the service and I am mapping and displaying the details of what service gives in that what are the common text details which need to come from Sitecore it displays it's ...
0
votes
1answer
90 views

GraphQL Search Query INVALID_OPERATION

The Query: { search(fieldsEqual:[ {name:"_fullpath", value:"/sitecore/content/*" } ]) { results { totalCount } } } The Result: "data": { "search": null }, "...
0
votes
0answers
32 views

ng-select module does not work for child component in jss angular

We added ng-select module in app.module it is working for root level not for child component in Angular JSS, can someone guide where to add ng-select and other angular module?
0
votes
0answers
37 views

Routing with JSS and Vue

So i have assets, such as fonts icons etc, in my vue public folder. In disconnected mode everything renders completely fine. However if I deploy my Vue JSS app all my assets return a 404. This is of ...
0
votes
0answers
71 views

Image field is not rendering in sitecore jss

I'm trying to render image field in Sitecore JSS as below. import React from 'react'; import { Text, Link, Image, RichText } from '@sitecore-jss/sitecore-jss-react'; const HeroBanner = ({ fields }) =...
0
votes
1answer
122 views

404 Error on Import Service

I've set up a blank Sitecore 9.1.1 XP instance and tried to get JSS up and running. I've installed the Sitecore JavaScript Services Server for Sitecore 9.1.1 XP package and 11.0.2 sitecore-jss-cli. I'...
0
votes
1answer
87 views

What is this error in the Sitecore error logs?

On a Sitecore 9.1 Initial Release site with JSS (Angular JS), we are noticing a large number of these errors in the Sitecore logs: 15888 15:09:55 ERROR ERROR [Error] This is the entire error message,...
0
votes
0answers
35 views

JSS Importer returns an error when RenderingParameterDefinition used to define Param fields

UPDATE: This issue actually occurs when I have used RenderingParameterDefinition way of defining Params instead of just using String. Ex: params: [ { name: 'bgColor', displayName: "Small", ...
0
votes
1answer
60 views

graphql is emtpy when using integrated mode

I have a GraphQL to fill in my menu. When I use jss start:connected it works just fine, but when I deploy (jss deploy app) and get it from the server it's empty. I have been digging a bit into what'...
0
votes
0answers
56 views

Create user registration using JSS

I am looking to create a user registration page using Sitecore JSS and react. The page can fields like First Name, Last Name, email address etc.. Once submit button is clicked that user should get ...
0
votes
2answers
93 views

Exception thrown while importing JSS app args.App.ImportUser is null or empty

I deploy with this command: jss deploy app --includeContent --includeDictionary When I do I get the following error: Exception thrown while importing JSS app Exception: System....
0
votes
2answers
129 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: ...
0
votes
0answers
86 views

How to get JSS Umbrella project running, I see its not getting the droptree values

Running node .\scripts\umbrella.js sync -c getting the following error C:\inetpub\wwwroot\JSS\umbrella-for-sitecore-jss-master\scripts\umbrella.js:137 else if (e[p]....
0
votes
1answer
50 views

Is there a way to deploy Sitecore JSS components from sitecore cms back to the jss app [duplicate]

"Jss deploy app" deploys the jss app to sitecore (including components, templates ..etc). Is there a way where I can deploy the components created in sitecore back to JSS app, that way I can view them ...