Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 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 ...
0
votes
1answer
182 views

Sitecore JSS for existing Sitecore site

The question may be very basic, but for better understanding about JSS i am asking this. The question is, can we use JSS for existing site created with traditional Sitecore MVC? Because I am not ...
1
vote
1answer
33 views

Create Validation Rules via JSS

I'm working on a Sitecore 9.2 JSS project that needs a required field that results to FatalError. The default required field in Sitecore is using CriticalError. I can create it manually in Sitecore ...
0
votes
1answer
58 views

How to pass a variable to search context?

I have created a SearchContext, defined query, provider etc. I have a variable to pass so can get result depending on what is being passed. Now, how do I pass this $query variable (which will be a ...
0
votes
1answer
147 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
1answer
39 views

GraphQL query to search for pages based on template

The following GraphQL query returns items based on the Page template: search(keyword: "Dream", first: 10, language: "en", fieldsEqual: [{name:"_templatename", value:"Page" }] ) { ...
1
vote
1answer
22 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....
0
votes
1answer
78 views

Editing JSS SXA route fields in Experience Editor

Using a JSS site deployed on SXA 9.3, is it possible to edit route fields in Experience Editor ? I have assigned simple fields to the route template and in Experience Editor I have tried using the ...
2
votes
1answer
91 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 ...
0
votes
1answer
58 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 ...
1
vote
0answers
31 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....
0
votes
0answers
41 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 ...
0
votes
0answers
33 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 ...
0
votes
1answer
19 views

Angular JSS - References to Window Break In Experience Editor

I have a couple references to the window object in my Angular JSS component: @HostListener('window:resize', ['$event']) onResize(event) { if (window && typeof window !== 'undefined') {...
0
votes
1answer
114 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 ...
1
vote
2answers
197 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
1answer
58 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 ...
1
vote
1answer
91 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
1answer
29 views

Why is JSS rendering items of template Sample Item but not of any other template?

I installed Sitecore JavaScript Services Server for Sitecore 9.3 XP 13.0.0 rev. 190924 in a 9.3 instance. I then created an item under the Home item using the /sitecore/templates/Sample/Sample Item ...
4
votes
3answers
285 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 ...
2
votes
1answer
59 views

JSS translations not working in integrated mode

I am using Sitecore XP 9.1 with JSS, and performed the default JSS scaffolding setup. Translations are working in disconnected mode, but when I switch to integrated mode the translated page is not ...
0
votes
0answers
19 views

Consume sitecore jss data from a separate sitecore instance

I have a Sitecore 9.1 MVC implementation where I want to consume the layout service response from a different Sitecore endpoint as an rendering. I have gone through the ways mentioned in Sitecore ...
0
votes
1answer
38 views

Does front-end JSS trial includes Sitecore Experience platform?

It seems 60 day developer trial license is no longer available, and the only trial available is the front-end JSS trial. Does the front-end JSS trial includes Sitecore Experience platform? Can I run ...
0
votes
1answer
25 views

JSS Field naming convention

Will or should Sitecore automatically sanitize field names when serialising them as part of the layout service or do we need ensure we define fields in Sitecore using a consistent format? e.g. would "...
0
votes
1answer
54 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. ...
3
votes
1answer
343 views

500 Error Page for HTTPS connection in Sitecore JSS in Connected Mode

I'm trying to implement user authentication login and currently trying out to configure JSS connected mode to work with https (secure connection). Following https://jss.sitecore.com/docs/techniques/...
0
votes
0answers
33 views

JSS Import media file returns error that Media does not exist [SC JSS+Angular]

I created a custom template to be used in my content items and one of it's field is an Image field. Also, created a content item under "data/content" using that template and supplying the correct ...
1
vote
1answer
37 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....
0
votes
3answers
361 views

Access denied while importing sample react app to Sitecore

I have installed JSS tech preview 4 and trying to import the sample react app "sitecore-embedded-jss-app". When running jss deploy app or jss deploy app -c -d , I get the message Forbidden - ...
2
votes
1answer
177 views

Unexpected response from import service: Status message: Found

Fresh new Sitecore XP 9.2 + JSS 12.0 and trying to deploy an OOTB react JSS app. The ApiKey is created (with two * for test only). The Layout Service is responding on /sitecore/api/layout/render/jss?...
0
votes
0answers
27 views

Get current system Date and Time using GraphQL (SitecoreJSS)

Is there way to get the current system date and time using GraphQL (on GraphQL UI)? Working on a requirement that I need to compare the Sitecore item expiration date(custom field) with the current ...
0
votes
1answer
26 views

Unable to run jss build command on build server: 'jss' is not recognized as an internal or external command operable program or batch file

On my TeamCity build server I am attempting to run the jss build command in one of the build steps, but it fails with the error: 'jss' is not recognized as an internal or external command operable ...
0
votes
1answer
103 views

Manage security access for items with GraphQL

We noticed that there is no limitation on what data can be queried, all the data in GraphQL can be retrieved within the Sitecore instance. Any GraphQL request with the correct API Key can retrieve ...
0
votes
0answers
12 views

Can't call login-page from JSS app

I tried to follow this guide to login from the JSS-app, but I get an error when posting: Access to XMLHttpRequest at 'https://myApp/sitecore/api/ssc/auth/login?sc_apikey={APIKey}' from origin 'http://...
1
vote
2answers
144 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 ...
0
votes
1answer
153 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 ...
1
vote
1answer
173 views

How to render a component after a async request with React & Sitecore JSS?

I have a simple article page. I should have an infinite scroll implementation, meaning once a user has reached the bottom of the page, I should load the next article. How can I render a component ...
0
votes
1answer
50 views

Node module not fully loading into browser

I am building a custom component library using Stenciljs and webcomponents. I have published to an npm repo and was able to create an example create-react-app app using all of the components without ...
0
votes
1answer
39 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 ...
0
votes
2answers
59 views

SitecoreJSS deploy emptying field vales

Environment: Sitecore 9.0 update-1 SitecoreJSS 11.0.0 I created a sample SitecoreJSS app (using Angular), and created a new JSS component using jss scaffold <NewcomponentName>. I want to add ...
0
votes
0answers
25 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 ...
0
votes
1answer
36 views

Do not create rendering for a template during jss deploy

I am using Sitecore 9.3 Instance with JSS. I need to create a component that consists of 2 templates - say - Template1.sitecore.js and Template2.sitecore.js and 1 rendering - RenderingName/index.js. ...
0
votes
2answers
48 views

Making Sitecorepath dynamic in Sitecore JSS

In Sitecore JSS, we are defining the app name, Sitecore path etc in the below section: <app name="GCP" sitecorePath="/sitecore/content/Home/JSS" appDatasourcesPath="/...
0
votes
1answer
52 views

Error deploying my first jss app

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 ...
0
votes
0answers
33 views

Preferred method of populating rendering data with route / context item instead of datasource item

I have component that has no explicit datasource because I want it to get its field values from the route item (which also happens to be the Sitecore context item). What would be the preferred method ...
2
votes
1answer
98 views

How do you access JSS Dictionary values programmatically in C#?

We have a jss application that makes use of the JSS Dictionary to display values in the application. At the same time, we would like to re-use the same content labels in an email that is being sent ...
0
votes
1answer
140 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
0answers
21 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 ...
0
votes
0answers
30 views

Enforce 443 port added in the generated media url

In my local environment, I have 2 sitecore JSS sites running and I need to make both available over http. one with port 80 and one with port 443. Example: http://abc.com http://abc.com:443 I ...
0
votes
1answer
18 views

jss build command does nothing

I'm currently setting up the JSS CLI on my build server so that I can run continuous integration builds. I installed the CLI with the command: npm install -g @sitecore-jss/sitecore-jss-cli And it ...

1
2 3 4 5
7