Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about the Sitecore JavaScriptServices module and JSS CLI.
6
votes
1
answer
3k
views
How can I get the current URL in the SSR of a page
In my layout.js file, I get the current URL of the page with this code:
url: typeof window !== 'undefined' ? window.location.href : '',
On first request of this page from the server, the url is se …
2
votes
0
answers
262
views
Create new content missing when adding a component in experience editor
I'm using Sitecore 9.3 with JSS 13.
When I try to use the add here and select one of my components I get the Select the associated Content dialog box. …
1
vote
2
answers
711
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.InvalidOperationException …
1
vote
1
answer
413
views
How do I enable .babelrc for JSS
However, if you just create .babelrc file JSS does not use this. How do I make this work? …
1
vote
2
answers
706
views
Droplist item returns name instead of "display name" for the component
I have a list of departments (store, administration.. ). In my component I've set this list as the datasource for a droplist. One of the departments has name "storeOutside" and a display name "Store/O …
1
vote
1
answer
445
views
JSS connected mode enters experience editor mode
When I'm working with the local web server (jss start:connected) and at the same time I log into the actual instance of Sitecore (dev.test.com) and go to the experience editor. …
1
vote
1
answer
5k
views
Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/
I have an error when running in connected mode (jss start:connected)
[HPM] Error occurred while trying to proxy request /sitecore/shell/-/jssmedia/xlbygg/data/media/img/sc_logo.ashx from localhost:3000 … to http://localhost:3043 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
But when I run with jss start it works (my graphQL stops working though). …
1
vote
0
answers
415
views
What is the best way to flatten structure
I have a structure where directly below the /home node I wish to have all the stores. Each store should have information like opening hours and address. This data was created as a component. This lead …
1
vote
0
answers
145
views
Error while deploying items with more than one component
When I create 2 components in the YML files I get the following error:
ManagedPoolThread #11 09:09:12 INFO [JSS] - Creating route-level
datasource folder (RouteLevelDatasourceStrategy) ManagedPoolThread … #11
09:09:12 INFO [JSS] - Ensuring item path:
/sitecore/content/spv-no/lane/boliglaan/home/produkt/Page Components
ManagedPoolThread #11 09:09:12 ERROR [JSS] - Exception thrown while
importing JSS app …
0
votes
1
answer
181
views
When you use a sitecore <Image> tag with classes, why are the classes removed when you add a...
When I add an image through experience editor this is the image tag I get when I inspect the source.
<img src="/sitecore/shell/-/media/image.jpg?h=2796&iar=0&w=4554&la=nb-no" width="4554" …
0
votes
1
answer
281
views
graphql is emtpy when using integrated mode
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. …
0
votes
1
answer
163
views
Is it possible to modify jss deploy template
We have stopped using code first jss. But we would still like to have commands like jss deploy template / jss deploy component. …
0
votes
2
answers
708
views
Image not working when fetching it with GraphQL in connected mode
This is on sitecore 10 / jss 14.0.1
I'm using JSS in connected mode (jss start:connected) since I will be fetching data with GraphQL. … EventRoute {
image {
rendered(fieldRendererParameters:"w=400&h=245")
width
height
alt
src(maxWidth:400, maxHeight:245)
editable
jss …
0
votes
0
answers
298
views
Failed prop type: Invalid prop `errorComponent` supplied to `PlaceholderComponent`
;
const ErrorComponent = (props) => {
return (<pre>{JSON.stringify(props, null, 1)}</pre>);
};
export default ErrorComponent;
Then inside layout i use that on the placeholder:
<Placeholder name="jss-hero …