Questions tagged [jss]
For questions about the Sitecore JavaScriptServices module and JSS CLI.
43
questions
5
votes
4
answers
1k
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 ...
11
votes
1
answer
5k
views
Cannot query field "search" on type "Query"
I would like to display in a view a list of items provided by a search on GraphQL query.
Context:
Sitecore 9.1
Jss 11.0.0
Jss application template : Angular
Componant file heroes-connected....
7
votes
1
answer
402
views
Update YAML Route Files as same as Connected mode, while working in Disconnected Mode
How can I update my YAML files for local disconnected mode development from Sitecore, as same as Connected mode. As We have a team who is working on Sitecore and another team is working on front-end ...
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:...
3
votes
4
answers
1k
views
NextJs JSS Setup Error generating manifest Error: Unable to load manifest require
Trying to setup NextJs JSS and ran only the below simple commands and it fails with below error for the 4th command but this folder/files doesn't exist. None of the below 4 commands creates those ...
3
votes
2
answers
910
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
2
answers
868
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.
...
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.
8
votes
3
answers
3k
views
The term 'jss' is not recognized while installing JSS
I'm trying to install JSS on a VM. When I run the install code, I get the following warnings:
PS C:\dev> npm install -g @sitecore-jss/sitecore-jss-cli
C:\Users\sitecore\AppData\Roaming\npm\jss -&...
7
votes
1
answer
415
views
'jss bootstrap' causes JavaScript heap out of memory error on graphql-let step
I have the Nextjs sample app running in connected mode to my existing Sitecore v10.2 implementation using JSS v19. It's all working correctly - I'm able to create new components and edit them in the ...
7
votes
1
answer
537
views
Error in component using integrated GraphQL search query "Cannot read property search of undefined"
Component definition
export default function (manifest) {
manifest.addComponent({
name: 'Navigation',
graphQLQuery: `
query NavigationQuery {
search(
fieldsEqual: [
...
6
votes
2
answers
3k
views
Unexpected response from import service: Error: unable to get local issuer certificate
I have version 9.0 update 2 and am working with the sample JSS app. I used the this same app on an earlier environment which was setup as Standalone and had no issues. This is a remote deploy to a ...
5
votes
1
answer
1k
views
Integrated GraphQL is not working correctly with JSS with SXA
I've been struggling for a few days to get JSS Integrated GraphQL running on an existing SXA project. To rule out any issues being introduced by this project, I decided to go right back to square one, ...
5
votes
2
answers
2k
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 ...
4
votes
1
answer
2k
views
JSS + Sitecore Forms: "unable to verify the first certificate"
New to JSS. Trying to use Sitecore Forms + JSS for the first time, I followed JSS documentation, creating a form in Sitecore; when I run jss deploy component Form --allowedplaceholders jss-main, I get ...
4
votes
2
answers
526
views
Integrated GraphQL is not executed in Experience Editor
We use Sitecore 9.2, SXA 1.9 + JSS 12.0. As for the JSS, we are using Sitecore First approach. Some JSON renderings have integrated GraphQL queries.
The Jss site was created trough JSS Tenant/JSS ...
4
votes
1
answer
294
views
"Could not find JSS app configuration" when deploying JSS app into JSS-SXA Site
In a JSS with SXA instance...
Create JSS Tenant
Create JSS Site
Attempt to import JSS app using jss deploy app -c
Error
Unexpected response from import service:
Status message: Bad Request
Body: ...
4
votes
1
answer
869
views
Creating multi site using Sitecore JSS
I am new to creating Multisite using Sitecore JSS. Little confused with what configuration should I go ahead with,
Current configuration,
We have currently 1 site added to the site node in Sitecore....
4
votes
1
answer
611
views
Deploy Sitecore Jss React App to Azure Content Delivery
I tried to deploy my JSS React App to Azure scaled CD. I got my Jss App deployed to Azure CM successfully and it's working as expected.
Steps to deploy to Azure CD
The Azure scaled CD was setup by ...
3
votes
2
answers
2k
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?...
3
votes
1
answer
390
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 "...
3
votes
1
answer
686
views
Profiling Sitecore 9.1 JSS Server-Side-rendering node server
JSS site is running in integrated mode on Sitecore 9.1
I have problem with the SSR node process, it's hanging around 18 min on load tests and results in error 500 for site.
For blind solution I ...
3
votes
2
answers
946
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 ...
3
votes
1
answer
254
views
Hitting the Layout Service Endpoint Is Not Recording Analytics
I want to use the layout service endpoint that is a part of jss. If I make a request to the layout service endpoint should any analytics events be triggered by default? Currently it seems that making ...
3
votes
4
answers
989
views
Unexpected error processing reply from import status service
I have Sitecore 9.3 version and followed the steps described here https://jss.sitecore.com/docs/getting-started/jss-server-install to setup JSS server. I am not able to deploy the app while running ...
2
votes
1
answer
378
views
How could we apply Hybrid (SSG and SSR) rendering with Sitecore Nextjs
How could we apply Hybrid (SSG and SSR) rendering in a single Sitecore Nextjs application?
We tried this article:
https://github.com/Sitecore/jss/tree/release/18.0.0/samples/nextjs/src/pages
https://...
2
votes
2
answers
922
views
Edit frame with Sitecore JSS
I am using Sitecore 9.2 with JSS and code first approach. I have one component which has datasource, datasource is pointing to folder and folder has some child items. I am getting data using GraphQL, ...
2
votes
1
answer
748
views
Sitecore JSS placeholder issue on Route
I am trying to create a new route using Sitecore 9.2 JSS. Below steps I have followed:
I have created a new Route i.e. Product.
Then I have created two new placeholders jss-header and jss-footer. (...
2
votes
1
answer
465
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
1
answer
932
views
JSS Containers setup, CM container does not start or attempt to start
I'm following the JSS walkthrough with container and I'm running into an issue running the up.ps1 script. Most of the script runs fine, but when it goes to start the containers the cm container doesn'...
2
votes
2
answers
626
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
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 ...
2
votes
3
answers
466
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 ...
2
votes
1
answer
3k
views
Sitecore Filtering by Field Value on Query of GraphQL
I am currently working on trying out the Sitecore GraphQL Query where I just get all the items of a specific location in the Sitecore Tree. However, I may need to filter the item results based on a ...
1
vote
1
answer
2k
views
Import process fails : "Unexpected response from import service: Status message: Found"
I have Sitecore 9.0 update -1 version and followed (https://jss.sitecore.com/docs/getting-started/jss-server-install) to setup JSS server.
I cant able to deploy the app while running deploy command, ...
1
vote
3
answers
433
views
Error running `jss deploy app`: TypeError: logReplies.forEach is not a function
When running:
jss deploy app --includeContent --includeDictionary --acceptCertificate XX:XX:XX:XX:XX:XX...
I get the error:
Sitecore has accepted import task JSSImport-myapp-2:59:34 PM
Unexpected ...
1
vote
1
answer
467
views
Allow CORS request from CM to Rendering host
Related to Missing fonts when previewing Next.js app in Experience Editor.
I've got the Rendering container with SITECORE_API_HOST set to CD. In CM Experience Editor I see some CORS errors caused by ...
1
vote
3
answers
733
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 ...
1
vote
1
answer
787
views
Performance Issue JSS+React
I'm having a performance issue, the loading speed is quite long.
I also noticed that when I first load the page, there is some plain text showing while loading before the page completely loaded and ...
0
votes
1
answer
857
views
What version of sitecore jss is compatible with a given sitecore-jss npm package
I am trying to find some sort of compatibility matrix that will tell me what version of JSS https://dev.sitecore.net/Downloads/Sitecore_JavaScript_Services/ is compatible with the sitecore-jss npm ...
0
votes
1
answer
139
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
1
answer
1k
views
Set different Language from jss component
We are trying to implement multilingual site in JSS. When user logged in, we need to show a drop down to select language and based on the selection we want to set the language. Question is, how to set ...
0
votes
1
answer
179
views
What is the best JSS template field naming convention
What is the best practice for naming the template fields in Sitecore JSS?
Layout service is not making any changes to the filed names when returning JSON response so it seems quite natural to use ...