AEM WKND SPA Tutorial Issues
This is my setup:
AEM version - 2022.6.7767.20220616T174806Z.
Node version - 16.16.0.
Npm version - 8.19.3
React - 16.12.0
Dependencies:
"@adobe/aem-core-components-react-base": "^1.1.8",
"@adobe/aem-core-components-react-spa": "^1.2.0",
"@adobe/aem-react-editable-components": "^1.1.6",
"@adobe/aem-spa-component-mapping": "^1.1.1",
"@adobe/aem-spa-page-model-manager": "^1.3.11"
AEM archetype:
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate
-D archetypeGroupId=com.adobe.aem
-D archetypeArtifactId=aem-project-archetype
-D archetypeVersion=35 -D appTitle="WKND SPA React"
-D appId="wknd-spa-react"
-D artifactId="aem-guides-wknd-spa.react"
-D groupId="com.adobe.aem.guides.wkndspa.react"
-D frontendModule="react"
-D aemVersion="cloud"
-D includeDispatcherConfig="n"
Issue 1:
I am facing the problem with Open Weather custom component from the tutorial:
Overall it works fine, but when I try to configure it as an author through the dialog, component do not update itself with the entered data as it normally would.
Browser console states the following:
GET http://localhost:4502/content/wknd-spa-react/us/en/home/jcr:content/root/responsivegrid/open_weather.model.json?_=1673979617311 400 (Bad Request)
In order to see changes, I need to refresh the whole page, and the above mentioned GET request does not appear again.
Issue 2:
I am facing the problem with Banner component from the tutorial:
Image part works fine, while text is not showing up. I can see bannerText prop in CRXD, but it is missing from the JSON model and never arrives to the React. On the other hand, all props related to image are present in JSON model and they are transferred without any problem.
Both issues do not appear on another machine (same versions of the prerequisites, project setup, code base etc.) and component works perfect.
Please suggest any methods you're aware of to troubleshoot these issues.
Thank you in advanced!