Questions tagged [jss]

For questions about the Sitecore JavaScriptServices module and JSS CLI.

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

Switching from JSON to YAML

The basic-sample-react-native project comes with the data routes setup in a JSON file. Can you tell me what the steps are for using a YAML file instead? I swapped out the JSON file for a valid YAML ...
  • 103
2 votes
2 answers
2k views

Share Sitecore content to Native Mobile Apps (IOS swift and Android java)

If we wanted to provide data (get/set operations on content tree, analytics, personalization, tracking data) from Sitecore 9 to native mobile apps (not based on Sitecore Mobile SDK and Xamarin but ...
5 votes
1 answer
142 views

Providing "deeper" data to placeholders

My understanding is that the fields structure in routes data should be fairly flat, having just the fields and then a value beneath. Example: --- name: about placeholders: appname-main: - ...
  • 103
0 votes
1 answer
115 views

How to add / view component items to / in a route

I have some questions about adding items on Sitecore route. Here is an example : I created MyCarrousel item that display images. My Sitecore tree : Content (directory) MyCarrousel (item) Home (...
  • 69
2 votes
3 answers
451 views

Layout API returning strange code into placeholder

Here is my Sitecore tree Here is my data item in the experience editor (using the default Welcome component). I removed the Sitecore background image that was in the CSS. Here is what the layout API ...
  • 69
1 vote
1 answer
1k views

Getting 404 error when retrieving items through Layout API

I'm working with the React JSS Basic example. I created a new item based on the default "Welcome" component and I'm trying to retrieve it through JSS. Here is my Sitecore tree : To get Welcome-1 ...
  • 69
3 votes
2 answers
1k views

Import template from Sitecore to JSS React application

I understand the mecanism when you create component code-first and then you import it into Sitecore. I try to understand one point, how can I import new component from Sitecore (Sitecore-first ?) to ...
  • 69
1 vote
1 answer
1k views

JSS vueJs - How to include vue-meta for server rendering

JSS Tech preview 3 vueJs sample basic I'm looking to include vue-meta for Server Rendering. I've successfully added it for Client Rendering, but, because the tutorial to include vue-meta is very ...
0 votes
2 answers
4k 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-...
2 votes
1 answer
9k views

The `style` prop expects a mapping from style properties to values, not a string

Created Sitecore 9 update 1 on Azure Web App using the Azure Marketplace. JSS packages have been installed successfully and also JSS deploy command successfully: jss deploy package --includeContent --...
  • 2,253
2 votes
2 answers
91 views

Unable to install JSS Server Package on Azure Web Apps

Installed SC9 update 1 using sitecore market place. I've been trying to setup JSS on Web Apps but not having any luck. When I try to install JSS Server package the installation process keeps spinning ...
  • 2,253
1 vote
1 answer
79 views

Sitecore JSS with Vue - Json are not identical between connected and disconnected mode

In disconnected mode I have a "value" that I don't have in connected mode. So if I need to do this: {{ fields.items.value.length }} it's working only in disconnected mode and not after a deploy... ...
2 votes
1 answer
355 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.
0 votes
2 answers
2k views

Placeholder was not found in the current rendering data - JSS sitecore 9 with VueJs

In Disconnected mode JSS Tech Preview 3 Sample vue JS I have a component : data/component-content/Footer-nav With an ID : ID__footer-nav I can link all my pages to this component perfectly: "...
1 vote
1 answer
452 views

How can i add an svg with a sc-link JSS with VUE JS?

I want to add svg icons in the footer with links <sc-link>, how can i do that?
0 votes
1 answer
587 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 : ...
1 vote
1 answer
551 views

How can I share data from one component in JSS with Vue Js?

As a developer, I want to change data from a component in ONE place, so that I don't need to duplicate this data for each pages How can I ask to my src/app/components/header-nav.vue <template&...
1 vote
1 answer
613 views

JSS Rendering DataSource item Workflow States

In JSS datasource items, we can see "JSS Development Workflow" added. In that workflow, there are "Development Mode", "Content Mode" and "Published" states. In which state of the JSS development ...
  • 3,737
3 votes
1 answer
516 views

How JSS Rendering components bind to physical file

Once code-first JSS solution is deployed to a running sitecore instance, we can see rendering items created under Rendering folder in Sitecore content tree. But, Only Component Name field is ...
  • 3,737
2 votes
1 answer
163 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, ...
4 votes
1 answer
704 views

How to define JSS component in YAML without DataSource Template

I need to define a component in YAML manifest files in Sitecore JSS CodeFirst approach, where component doesn't have any "Data Source Template" field populated. In this case, NO template should be ...
  • 3,737
5 votes
1 answer
576 views

Understanding the overhead involved with routes and definitions

I'm enjoying JSS so far but have some general questions about what I perceive as "overhead" work involved in setting up the routes, component definitions and such. If I want to add a component, this ...
  • 103
14 votes
1 answer
3k views

What is JSS and how do I get started with building a JSS app?

I'm not 100% sure what JSS is and I want to experiment with some sample JSS apps and build a JSS app of my own.
0 votes
1 answer
101 views

JSS deploy vueJs - then I need to manually Unprotect Layout to add my placeholders

Currently, each time I'm doing deploying jss using jss deploy package -c -d I need to manually unprotect the Item of my App Layout to include my placeholders. Any ideas how to stop this? Thanks
2 votes
2 answers
825 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. ...
4 votes
1 answer
541 views

Install jss package (layout service) on content delivery server

I'm developing a Sitecore ssr with jss on azure using two app instances. One for content management and one for content delivery. I installed all the jss packages on content management and it works. ...
2 votes
2 answers
602 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
1 answer
296 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 ...
0 votes
1 answer
342 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 ...
5 votes
1 answer
548 views

Sitecore JSS components and Sitecore MVC components in a single Experience Editor page

Can you use Sitecore JSS components with Sitecore MVC components in the same Experience Editor page? If this does work, does it work with dynamic placeholders? An example might be adding a Experience ...
  • 503
1 vote
1 answer
1k views

Rendering Sitecore.JavaScriptServices

Can somebody help me on this Error Rendering Sitecore.JavaScriptServices.ViewEngine.Presentation.JsLayoutRenderer: Cannot read property 'context' of undefined TypeError: Cannot read property '...
1 vote
2 answers
462 views

Sitecore Jss config deployment error

Can somebody help me to resolve this error which I am getting when deploying the same ReactBasicApp using sitecore jss [InstallationException]: Could not find JSS app configuration for 'my-...
0 votes
2 answers
3k views

Couldn't find preset "env" relative to directory Error while upgrading to JSS Update 2

Getting error while running jss start at my local, attached screen shot for same." Couldn't find preset "env" relative to directory "~\jss-master\jss-master\samples\basic-sample-react" Trace: [1]: ...
9 votes
2 answers
3k views

How does Sitecore JSS impact backend Sitecore development process

Context: Currently we use Angular JS but our front end team wants to use reactJS as strategic platform. Until Sitecore JSS came out; I had been telling them that Sitecore doesn't support it. I read ...
  • 2,253
0 votes
1 answer
1k views

Strange working of dictionary in Sitecore JSS

I am experiencing strange workings of the dictionary in Sitecore JSS. As mentioned in https://jss.sitecore.net/#/sitecore-net-dev?id=for-sitecore-net-developers, I have created an item of template /...
  • 543
2 votes
1 answer
1k 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....
  • 543
7 votes
1 answer
1k views

Sitecore 9 JSS implementation

We want to use JSS (https://jss.sitecore.net/#/) for headless development and there are a couple of things that are not very clear in the documentation. We want to preserve XP Editor functionality. ...
  • 543
1 vote
0 answers
1k views

Configuration error in JSS Sitecore Quick start for development

Configuration error while browsing Sitecore basic jss app after performing deployment steps mentioned in below link: https://jss.sitecore.net/#/setup/app-deployment?id=app-deployment
2 votes
1 answer
114 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
1 answer
453 views

Service based architecture in sitecore

I am analysing on the possibility of creating a web application using Sitecore where the web application is pure thin client using js based framework (knockout or angular) which can consume the ...
4 votes
1 answer
224 views

Want to skip content during code-first deployment

I would like to avoid my content comrades from being unhappy and overwrite changes. Can I skip content from JSS package? Good day.
  • 43
6 votes
2 answers
808 views

Seeing Experience Editor markup instead of an editable field when using Sitecore JSS with React

I'm trying to output an editable field in a component of my React-based Sitecore JSS application: import React from 'react'; import PropTypes from 'prop-types'; const AwesomeComponent = ({ fields }) ...
7 votes
2 answers
2k views

"Could not find JSS app configuration" error during JSS import

I'm attempting to import one of the JSS sample applications and I'm getting the following error after running the npm run package command: Fatal error occurred while running import process. Exception:...

1
8 9 10 11
12