adobe / aem-guides-wknd-spa

MIT License
71 stars 97 forks source link

App doesn't work with production build #34

Open alex89raso opened 1 year ago

alex89raso commented 1 year ago

Actual Behaviour

Hi, If, in the root pom, you change build.environment to :production</build.environment> and you build the project with mvn clean install -PautoInstallSinglePackage -Pclassic, you can notice that the resultant software doesn't run well, the components are not loaded. When the :production is set in pom, the "build:production": "ng lint && ng build --prod && clientlib" is fired in Angular, the "--prod" option use the AOT compilation and the build optimizer (as configured in angular.json). The AOT compilation and the build optimizer generate the problem described, If in angular.Json file you disable AOT and build optimizer the software run well and the components are loaded is there a solution to this?

Steps to Reproduce

  1. set build.environment to :production</build.environment> in parent pom
  2. run mvn clean install -PautoInstallSinglePackage -Pclassic.
  3. try the application

Platform and Version

AEM: 6.4.8 aem-guides-wknd-spa TAG:1.0.1-Angular

Logs taken while reproducing problem

there aren't error in log

SachinMali commented 1 year ago

@alex89raso Can you please try on AEM 6.5.14 or the latest service pack?

alex89raso commented 1 year ago

Hi SachinMali, i try on 6.5.14 and there is the same issue.

MicrosoftTeams-image (5) MicrosoftTeams-image (4) MicrosoftTeams-image (3) MicrosoftTeams-image (2)

alex89raso commented 1 year ago

Hi SachinMali, i try on 6.5.14 and there is the same issue.

MicrosoftTeams-image (5) MicrosoftTeams-image (4) MicrosoftTeams-image (3) MicrosoftTeams-image (2)

@SachinMali do you have news?

alex89raso commented 1 year ago

hi, are there any news about this bug?

alex89raso commented 1 year ago

any news?