AEM Project Creation issues
| Archetype Version | AEM Version |
|---|---|
| 7 | 6.0 or newer |
| 8 | 6.0 or newer |
| 9 | 6.0 or newer |
| 10 | 6.0 or newer |
| 11 | 6.2 or newer |
| 12 | 6.3 or newer |
| 14 | 6.4, 6.3 + SP2 |
| 15 | 6.4, 6.3 + SP2 |
| 16 | 6.4, 6.3 + SP2 |
| 13 | 6.4, 6.3 + SP2 |
| 17 | 6.4, 6.3 + SP2 |
| 18 | 6.5, 6.4, 6.3 + SP3 |
| 19 | 6.5, 6.4, 6.3 + SP3 |
| 20, 21, 22 | 6.5, 6.4, 6.3 + SP3 |
| 23 | 6.5, 6.4, 6.3 + SP3, AEM as a Cloud Service |
| 24, 25, 26, 27 | 6.5.5, 6.4.8.1, AEM as a Cloud Service |
| 28, 30, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41 | 6.5.7, AEM as a Cloud Service |
React SPA
mvn -B archetype:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=35 -D appTitle="Agro Tourism" -D appId="agrotourism" -D groupId="com.agro.tourism.aem" -D artifactId="agrotourism-aem-project" -D version="0.0.1-SNAPSHOT" -D aemVersion="6.5.5" -D includeDispatcherConfig=n -D includeExamples=n -D frontendmodule=react
error 1
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm run prod) on project agrotourism-aem-project.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
Solution 1 : To fix this, set the version of POM.xml NODE and NPM version to that of local node and npm versions.
Solution 2 : make changes in package.json file in ui.frontend
update "typescript":"3.3.3333 to "typescript":" 4.8.2"
remove package-lock.json
aemVersion="cloud" with aemVersion="6.5.5". If targeting 6.4.8+, use aemVersion="6.4.8".
No comments:
Post a Comment