Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App doesn't work with production build #34

Open
alex89raso opened this issue Mar 31, 2023 · 5 comments
Open

App doesn't work with production build #34

alex89raso opened this issue Mar 31, 2023 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@alex89raso
Copy link

Actual Behaviour

Hi,
If, in the root pom, you change build.environment to <build.environment>: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 <build.environment>: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
Copy link
Contributor

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

@SachinMali SachinMali added the question Further information is requested label Mar 31, 2023
@alex89raso
Copy link
Author

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
Copy link
Author

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?

@SachinMali SachinMali added bug Something isn't working help wanted Extra attention is needed and removed question Further information is requested labels Apr 5, 2023
@alex89raso
Copy link
Author

hi, are there any news about this bug?

@alex89raso
Copy link
Author

any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants