Angular build not creating dist folder on production
See original GitHub issueBug Report
Affected Package
The issue is caused by package @angular/....Is this a regression?
Yes, the previous version in which this bug was not present was: ....Description
A clear and concise description of the problem...When building an angular app using a Dockerfile, ng build --configuration production does not always create a dist folder my output path is defined as “outputPath”: “./dist”, in angular.json
Minimal Reproduction
https://stackblitz.com/...Exception or Error
Your Environment
Angular Version:
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 12.0.1
Node: 12.16.3
Package Manager: npm 7.15.0
OS: linux x64
Angular: 12.0.1
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1200.1
@angular-devkit/build-angular 12.0.1
@angular-devkit/core 11.2.13
@angular-devkit/schematics 11.2.13
@schematics/angular 11.2.13
rxjs 6.6.7
typescript 4.2.4
Anything else relevant?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Angular-cli not generating dist directory with ng build
The build folder will be listed in the angular.json file with parameter named outputPath . Just check the respective folder to get the...
Read more >Can't find angular dist folder during build - GitLab Forum
I can build my angular app fine locally (ng build --prod) and it creates the usual dist folder as expected.
Read more >Is there any other way to create dist folder in Angular 6 ... - Quora
Hi there, You can use the build command without the production flag as well. [code]ng build [/code]This would still give you the dist...
Read more >Deploying an application - Angular
To build your application for production, use the build command. By default, this command uses the production build configuration. ... This command creates...
Read more >Build will not create /dist/ folder when running on the server ...
The dist folder is created as part of the 'publish' step, when the .NET build and the angular compilation are done. When the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Upon further investigations, we noticed that its possible the server building the docker image may have been running out of memory at the point it should have created the dist folder. When we increase memory on server it builds with the dist folder and our deployments are fine.
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.