Create new AEM project with latest angular | Community
Skip to main content
New Participant
December 7, 2023
Solved

Create new AEM project with latest angular

  • December 7, 2023
  • 2 replies
  • 1478 views

Trying to create a new angular AEM project, with latest angular versions (14 +)

 

but below code always generating me with angular 9. 

 

``` 

mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D aemVersion=6.5.15 \
-D archetypeVersion=47 \
-D appTitle="WKND SPA Angular" \
-D appId="wknd-spa-angular" \
-D artifactId="aem-guides-wknd-spa.angular" \
-D groupId="com.adobe.aem.guides.wkndspa.angular" \
-D frontendModule="angular" \
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ksh_ingole7

Hi @naresh217 

 

This git repo is what you get when you run your Maven archtype command. If you check https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.frontend.angular/package.json The version here is 9.1.12

 

So with the command I do not think you will be able to upgrade to the latest version. You will have to do it manually. 

2 replies

kautuk_sahni
Employee
December 11, 2023

@naresh217 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
ksh_ingole7
New Participant
December 7, 2023

Hi @naresh217 

 

To the best of my knowledge the Maven archtype gives you ht e most compatible version of angular. 

You can find the defaults of the latest maven archetype respective the Angular setup, for example https://github.com/adobe/aem-project-archetype/tree/develop/src/main/archetype/ui.frontend.angular

 

Although you can try upgrading your angular manually . 

Please Refer to this Doc: https://angular.io/guide/update-to-version-14

 

Thanks

naresh217Author
New Participant
December 7, 2023

while trying to upgrade it is giving lot of dependency issues. 

So thought of creating a new project with Angular 14+. 

 

So from your comment we can create with latest version of angular ? 

 

ksh_ingole7
ksh_ingole7Accepted solution
New Participant
December 7, 2023

Hi @naresh217 

 

This git repo is what you get when you run your Maven archtype command. If you check https://github.com/adobe/aem-project-archetype/blob/develop/src/main/archetype/ui.frontend.angular/package.json The version here is 9.1.12

 

So with the command I do not think you will be able to upgrade to the latest version. You will have to do it manually.