Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

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

I want my JSS app to be the homepage

I would like to see my app when I go to my local root URL (in anonymous mode). I deleted the Home website from the admin. So currently I have this tree: my-app.config looks like this: However, ...
2
votes
2answers
464 views

Angular Bundle size issue

To get a better understanding of the JSS library I ran the bundle analyzer on the Angular Sample project and I'm getting 169 modules on my main bundle. Does anybody knows where those 169 modules are ...
2
votes
1answer
110 views

Sitecore JSS Can't resolve 'music/components/GenreList' in 'C:\Dev\sitecore_nine\samples\flo\musictore_react\src

I Created a Component namend GenreList but i cannot add it to my ComponentFactory Here is my gist: https://gist.github.com/Rian0702/10c3e7068b8e15617bb034dcfffca495 And a picture of my App ...
2
votes
1answer
82 views

How to add custom route in Angular JSS ? Domain/<Page>/<id>

We are working hybrid headless SSR approach. The pages have a header and footer from Sitecore with wrapper angular components as shown in the image. We should pass the id of the article from the ...
2
votes
1answer
79 views

When JSS component is hidden via personalization Experience Editor show warning about missing "Hidden Rendering" implementation

After applying personalization rule to JSS component and using option to hide, Experience Editor shows warning that "Hidden Rendering" is not implemented in React, which is not too friendly ...
2
votes
2answers
155 views

JSS: Azure deployment

In our case, both test and prod environments are Azure app services. So currently when we deploy to test: I replace the layoutServiceHost and deployUrl in scjssconfig.json to be the address of QA ...
2
votes
1answer
235 views

ASP.NET Core RenderingHost in Experience Editor

I'm currently testing Sc10 with ASP.NET Core Rendering Host from the following Getting Started documentation. So far the rendering host works fine but whenever I want to access the Experience Editor I ...
2
votes
1answer
514 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 ...
2
votes
1answer
75 views

How do I query GraphQL using SPE?

How do I leverage SPE to query Solr via GraphQL?
2
votes
1answer
304 views

How to get "jssmedia" word in Sitecore JSS app image URL?

My JSS app is not showing images though they exist. When I open the same link in my browser, then the browser is showing those images. I am getting the URL of my JSS image as http://first-jss-app.dev....
2
votes
1answer
285 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 ...
2
votes
1answer
46 views

Can you setup security trimming with code first JSS?

We want to restrict some pages that are behind a login on a JSS site. We use code-first development. Is is possible to setup the security in the /data/*.yml files? Or should we update the security ...
2
votes
1answer
2k views

Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Value cannot be null. Parameter name: address

I am using Sitecore 9.1. I can able to run my sample angular application in connected mode using the command ">jss start:connected". But i cant able to open my site in local integrated mode , even in ...
2
votes
3answers
1k views

Get Items from data source folder by JSS/React

I have this react component (rendering) which has a data source (a folder with items). Is there any way to get those items and render their fields in react component? In props was passed ...
2
votes
1answer
204 views

Sitecore 9.0 Update-1 JSS create sample app throw error : Error: connect ECONNREFUSED 192.X.X.117:443

I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server. Finally I can test my component like below and its working. ...
2
votes
2answers
797 views

JSS Default Angular App Build Error: Cannot find name 'Exclude'

Install JSS: npm install -g @sitecore-jss/sitecore-jss-cli create default react app - runs in Chrome: jss create jss-react-app react cd jss-react-app jss start create default angular app and ...
2
votes
2answers
647 views

Embed a Sitecore JSS app/component within an existing non-Sitecore website

Could you let me know please if there is a possibility to embed a Sitecore JSS app/component in an existing non-Sitecore website? To be more explicit our client has multiple external non-Sitecore ...
2
votes
1answer
203 views

Changing The Layout Service Response Outside The Json Of A Rendering

For an application I want to remove some levels of data from what jss's layout service returns. My end goal is to have an api endpoint that returns fields on the content items and fields on ...
2
votes
2answers
712 views

JSS vue - Error with server.bundle.js after jss deploy package

Good Morning, Yesterday I was working on a fresh install of Sitecore 9.1 and followed the documentation for JSS with vue. Everything was fine. I was able to connect my local app with my Sitecore. ...
2
votes
1answer
887 views

Sitecore JSS integrated mode with subsites

I have created separate bindings for the basic and advanced sample JSS apps as outlined in https://jss.sitecore.net/#/setup/sitecore-config?id=sitecore-configuration 127.0.0.1 JssBasicApp 127.0....
2
votes
1answer
83 views

Why JSS Layout Service default resolver differently resolves reference fields of the same item, leaving some with the reference item context or ID?

JSS Layout Service default resolver resolves reference fields with full referenced item context, but other reference fields leaves with the ID of the referenced item. For example there is an item, ...
2
votes
2answers
128 views

How to use rendering parameters in shared component using Sitecore JSS

I am using Sitecore 10 with Angular app JSS, I created shared component "Header" like that: I have a rendering parameters background field, I need to add it in yml files of pages to be ...
2
votes
1answer
54 views

Using the Layoutservice with a virtualFolder setup

I am using Sitecore 9.3 JSS with a virtualFolder site setup. My JSS site is located at /jss while there is another (MVC) site running at /. When running jss start:connected I get "Placeholder not ...
2
votes
1answer
315 views

Wildcards in Integrated Mode

I have a Sitecore site running: https://mysite.dev.local. The pages on this site have a JSS layout and JSON renderings on them. Navigation to a page (e.g. https://mysite.dev.local/foo/bar) would ...
2
votes
1answer
411 views

Setting up a basic contact form with Sitecore JSS (not using Sitecore Forms)

I'm building a JSS App and need to set up a basic contact form (sends an email). Since I'm using Sitecore 9.1, Sitecore Forms is unavailable in JSS. How do I set up an endpoint in Sitecore to send ...
2
votes
3answers
332 views

Pesonalization rule for the page - not component level

is there any way to show the separate page based on personalisation rule? i need to show one page when the user is authenticated and another page when user is not authenticated. Personalization is ...
2
votes
2answers
236 views

best practice for fetching authoring fields in sitecore jss

Ours is a SPA app being built using Sitecore JSS. One of the pages has the requirement to show client info. But the actual client data comes from an API. But the content labels (like Description ,...
2
votes
1answer
285 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 ...
2
votes
1answer
253 views

Removing templates from JSS

I would like to use the advance Angular JSS project as an starting point for a code first approach but I would like to know if it is possible to remove all components that came with that Angular ...
2
votes
1answer
60 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 ...
2
votes
1answer
51 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 ...
2
votes
1answer
46 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 ...
2
votes
1answer
168 views

Sitecore Forms CORS/Verification token error in Chrome, works in Firefox

I am trying to submit a form in Angular, through JSS. In chrome, I get a CORS error complaining the access-control-allow-origin header is missing. Just for fun, I added this to ...
2
votes
1answer
43 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 ...
2
votes
1answer
68 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 ...
2
votes
1answer
70 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 ...
2
votes
1answer
292 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 ...
2
votes
2answers
286 views

Unexpected response from import service: Status message: Forbidden

I have a JSS Tenant and Site working and Running. I created another Jss Tenant and JSS Site in it using Sitecore 9.3. Created a JSS App as I did before. I created a new API Key for my second Site. ...
2
votes
1answer
87 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....
2
votes
1answer
194 views

Error running my first jss app - cannot start node

Following the instructions here: https://jss.sitecore.com/docs/getting-started/app-deployment I was deploying into a vanilla 9.2 site which was working fine. Step 4. Content shows up in the content ...
2
votes
1answer
130 views

Duplicate data source items when selecting an existing content item

Sitecore version: 9.2 We see duplicates while editing the JSS page in the experience editor. Steps to replicate: Add Component -->Select Rendering-->Select an existing content item
2
votes
1answer
187 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 ...
2
votes
2answers
480 views

Access Referenced Items using Integrated GraphQL

I am having following content tree: In GraphQL (GQL), if I am rendering Product-1 (current context item) and wanted to access all the categories where Product-1 referenced in the multi-list field of ...
2
votes
1answer
269 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": { ...
2
votes
1answer
158 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 ...
2
votes
1answer
676 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 ...
2
votes
1answer
301 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.
2
votes
1answer
19 views

Related articles in Sitecore JSS: custom rendering contents resolver or api call?

We have a requirement to show on the article page a list of articles which have the same topic and author as the current article i.e. "Related articles". I have two ideas about how that can ...
2
votes
0answers
28 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 ...
2
votes
0answers
57 views

Sitecore 10.1 jss 16 cannot correctly identify renderings in integrated mode

I have created jss project with react template, and I have added typescript support by installing some typescript libraries and adding to server.webpack.config.js next config: module: { rules: [ { ...

1 2
3
4 5
10