my Constructor for the ngcartItem looks like this:

constructor(public id: number,
   public articleId: string,
   public name: string,
   public price: number,
   public quantity: string,
   public packagingUnit: number,
   public scaledPrice: number,
   public imagePath: string,
   public total: number,
   )  
{ 
  




Am Freitag, 18. August 2017 11:29:35 UTC+2 schrieb Bernd Wachter:
>
> Hi,
>
> I have the following Problem when i Build my Angular 4 Project for 
> Production --prod
>
> I become always the following Error when i Build with ng build --prod
> ------------------------
>
> ERROR in Can't resolve all parameters for NgCartItem in 
> /Users/Benny/Projekte/ShopApp/src/app/ngcart/ngcartitem.ts: (?, ?, ?, ?, ?, 
> ?, ?, ?, ?).
> ERROR in ./src/main.ts
> Module not found: Error: Can't resolve 
> './$$_gendir/app/app.module.ngfactory' in 
> '/Users/Benny/Projekte/ShopApp/src'
> resolve './$$_gendir/app/app.module.ngfactory' in 
> '/Users/Benny/Projekte/ShopApp/src'
>  using description file: /Users/Benny/Projekte/ShopApp/package.json (relative 
> path: ./src)
>    Field 'browser' doesn't contain a valid alias configuration
>  after using description file: /Users/Benny/Projekte/ShopApp/package.json 
> (relative path: ./src)
>    using description file: /Users/Benny/Projekte/ShopApp/package.json 
> (relative path: ./src/$$_gendir/app/app.module.ngfactory)
>      no extension
>        Field 'browser' doesn't contain a valid alias configuration
>        /Users/Benny/Projekte/ShopApp/src/$$_gendir/app/app.module.ngfactory 
> doesn't exist
>
> but when i use: ng build --prod -aot=false
> then my Project Build works Ok
>
> only when i Build with ng build --prod
> then i become always this Error and my Project want not Build !
>
> have someone a Idea what is the Problem ???
>
> Thanks
> Benny
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to