Giter VIP home page Giter VIP logo

Comments (8)

robisim74 avatar robisim74 commented on May 25, 2024

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.

nitin27may avatar nitin27may commented on May 25, 2024

Hi @robisim74

Thank you ,

I tried from cmd also , but getting below error, It seems that some file is missing,:
error2

from angularwebpackvisualstudio.

robisim74 avatar robisim74 commented on May 25, 2024

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.

nitin27may avatar nitin27may commented on May 25, 2024

Hi @robisim74
I updated npm to latest and tried to run ngc compiler getting below error,

error4

No, Aot folders get created,
Thank you.

from angularwebpackvisualstudio.

robisim74 avatar robisim74 commented on May 25, 2024

You are running another project, not this.

from angularwebpackvisualstudio.

nitin27may avatar nitin27may commented on May 25, 2024

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.

damienbod avatar damienbod commented on May 25, 2024

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.

damienbod avatar damienbod commented on May 25, 2024

Not an issue with this repo, Please reopen if incorrect

Greetings Damien

from angularwebpackvisualstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.