Comments (8)
From the README:
The production build has to be run from the command line. At present ngc, the angular compiler, can only be used from the command line.
So for production you can't use the Task Runner, but from the command line you must run:
npm run buildProduction
Greetings
from angularwebpackvisualstudio.
Hi @robisim74
Thank you ,
I tried from cmd also , but getting below error, It seems that some file is missing,:
from angularwebpackvisualstudio.
Yes, AoT files are missing. Try the following steps (and try to use the Windows command-prompt):
- update npm:
npm install npm@latest -g
- run ngc compiler:
npm run ngc
and check if the AoT folder is created (it should contain the ngfactory files created by ngc compiler).
If yes, try again npm run buildProduction
.
from angularwebpackvisualstudio.
Hi @robisim74
I updated npm to latest and tried to run ngc compiler getting below error,
No, Aot folders get created,
Thank you.
from angularwebpackvisualstudio.
You are running another project, not this.
from angularwebpackvisualstudio.
yes, i have replicated it and created new project on same structure using same packages and configuration, even i am getting same error on this project also.
Thank you
from angularwebpackvisualstudio.
npm build production will work from the cammand line if it's the same. Are all you components correct? The imports, styles, no require etc inside each component. Take a look at the example components in this repo and compare with yours.
Hope this helps
Greetings Damien
from angularwebpackvisualstudio.
Not an issue with this repo, Please reopen if incorrect
Greetings Damien
from angularwebpackvisualstudio.
Related Issues (20)
- Prod deployment issue HOT 4
- 502.5 when deploying to Windows Server 2016 HOT 1
- Your Custom Project vs Dotnet Angular Template? HOT 5
- Looking for the HMR specific code in the zip HOT 2
- AOT setup questions HOT 2
- Angular-cli support HOT 2
- Update to Webpack 4 HOT 1
- Install webpack-cli error HOT 1
- AOT Build Fail HOT 1
- Annoying build warnings
- adding styleUrls gives error HOT 1
- Can not start project HOT 1
- Controller not being registered when running with webpack-dev-server HOT 4
- Could not find a declaration file for module AppModuleNgFactory HOT 6
- error in creating a veu.js with bootstrap using npm HOT 1
- Use optimization.splitChunks instead of separate entry points (Webpack 4)
- When running with watch, assets fail to regenerate on save HOT 1
- Remove raw-loader as latest version no longer works or find a solution HOT 1
- Internet Explorer Polyfills missing HOT 1
- Updating webpack v3.8.1 to v4.41.2 in existing application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularwebpackvisualstudio.