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

ng build or ng build --environment prod works, but ng build --prod or ng build --aot fails #9923

Closed
catull opened this issue Mar 10, 2018 · 4 comments

Comments

@catull
Copy link
Contributor

catull commented Mar 10, 2018

Versions

ng version: 1.7.3
node version: 9.8.0
OS: macOS 10.12.6 (Sierra)

Repro steps

git clone [email protected]:catull/bootstraping-ngx-admin-lte.git
cd bootstraping-ngx-admin-lte
git checkout upgrade-dependencies
npm install

These work

ng build
ng build --environment prod

These fail

ng build --prod
ng build --aot

Observed behaviour

Non-prod and non-AOT build is fine.

Desired behaviour

Would like to benefit from AOT build

@catull catull changed the title ng build works, but ng build --prod or ng build --aot fails ng build or ng build --environment prod works, but ng build --prod or ng build --aot fails Mar 10, 2018
@jwuliger
Copy link

jwuliger commented Mar 11, 2018

I can report the very same issue.

I am on Windows 10, Node LTS 8.10.0 yarn 1.5.1 Angular Beta 7, CLI Beta 5

Thanks!

@pascallaprade-beslogic
Copy link

If you want the full --prod behaviour, I found out that the longer form --target=production still works while they fix the problem with the former: #9914 (comment).

@Brocco
Copy link
Contributor

Brocco commented Mar 12, 2018

@pascallaprade-beslogic Thanks for sharing that link... I'm closing this issue.

Duplicate of #9914

@Brocco Brocco closed this as completed Mar 12, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants