Error while serving the app with --prod in angular--prod Build giving warnings and deployed app not loading after upgrading to Angular 7Angular 7: ng serve works, but console shows a Zone.js error and app won't loadAngular 7 app getting CORS error from angular clientng serve command failed to compile in angular 7In Angular 7 i got 404 Error When reload the pageerror while using a javascript in angular projectHow to properly serve Angular 6/7 app using node / express?While listing the json data in angular 7 getting an error “Error: Error trying to diff '[object Object]'. Only arrays and iterables are allowed”Angular 7 - Error getting while creating Angular AppWhile downloading the file, it says corrupted in angular 6

301 Redirects what does ([a-z]+)-(.*) and ([0-9]+)-(.*) mean

How can I safely determine the output voltage and current of a transformer?

What color to choose as "danger" if the main color of my app is red

Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?

Why is so much ransomware breakable?

Why can't I share a one use code with anyone else?

Why did the soldiers of the North disobey Jon?

AD: OU for system administrator accounts

Usage of the relative pronoun "dont"

Why do academics prefer Mac/Linux?

What formula to chose a nonlinear formula?

Promotion comes with unexpected 24/7/365 on-call

Why are lawsuits between the President and Congress not automatically sent to the Supreme Court

Have there been any examples of re-usable rockets in the past?

What would a Dragon have to exhale to cause rain?

How to deal with the extreme reverberation in big cathedrals when playing the pipe organs?

How could it be that 80% of townspeople were farmers during the Edo period in Japan?

Would life always name the light from their sun "white"

Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?

Do high-wing aircraft represent more difficult engineering challenges than low-wing aircraft?

Why didn't Daenerys' advisers suggest assassinating Cersei?

What is this rubber on gear cables

Why use a retrograde orbit?

Why doesn't Iron Man's action affect this person in Endgame?



Error while serving the app with --prod in angular


--prod Build giving warnings and deployed app not loading after upgrading to Angular 7Angular 7: ng serve works, but console shows a Zone.js error and app won't loadAngular 7 app getting CORS error from angular clientng serve command failed to compile in angular 7In Angular 7 i got 404 Error When reload the pageerror while using a javascript in angular projectHow to properly serve Angular 6/7 app using node / express?While listing the json data in angular 7 getting an error “Error: Error trying to diff '[object Object]'. Only arrays and iterables are allowed”Angular 7 - Error getting while creating Angular AppWhile downloading the file, it says corrupted in angular 6






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Angular app is running fine with ng serve,but error shown when run with ng serve --prod




ERROR in : Invalid provider for the NgModule 'ɵngrx_modules_effects_effects_b in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts' - only instances of Provider and Type are allowed, got: [ɵngrx_modules_effects_effects_f in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, EffectSources in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, Actions in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, ?null?, ...]




app.module.ts



import BrowserModule from '@angular/platform-browser';
import NgModule from '@angular/core';
import DatePipe from '@angular/common';
.
.
import StoreDevtoolsModule from '@ngrx/store-devtools';
import environment from 'src/environments/environment';
import appReducer from './state-management/app.reducer';
import AppEffects from './state-management/app.effects';
import PdfViewerModule from 'ng2-pdf-viewer';
.
.
import PdfReaderComponent from './shared/components/pdf-reader/pdf-
reader.component';


import AsyncPipe from '../../node_modules/@angular/common';
@NgModule(
declarations: [
AppComponent,
.
.
],
imports: [
AngularFireDatabaseModule,
.
.
Ng5SliderModule,
StoreModule.forRoot(appReducer),
EffectsModule.forRoot(AppEffects),
StoreDevtoolsModule.instrument(
maxAge: 25, // Retains last 25 states
logOnly: environment.production // Restrict extension to log-only mode
)
],
providers: [ApiService,DatePipe,MessagingService, AsyncPipe],
bootstrap: [AppComponent]
)
export class AppModule









share|improve this question




























    0















    Angular app is running fine with ng serve,but error shown when run with ng serve --prod




    ERROR in : Invalid provider for the NgModule 'ɵngrx_modules_effects_effects_b in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts' - only instances of Provider and Type are allowed, got: [ɵngrx_modules_effects_effects_f in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, EffectSources in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, Actions in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, ?null?, ...]




    app.module.ts



    import BrowserModule from '@angular/platform-browser';
    import NgModule from '@angular/core';
    import DatePipe from '@angular/common';
    .
    .
    import StoreDevtoolsModule from '@ngrx/store-devtools';
    import environment from 'src/environments/environment';
    import appReducer from './state-management/app.reducer';
    import AppEffects from './state-management/app.effects';
    import PdfViewerModule from 'ng2-pdf-viewer';
    .
    .
    import PdfReaderComponent from './shared/components/pdf-reader/pdf-
    reader.component';


    import AsyncPipe from '../../node_modules/@angular/common';
    @NgModule(
    declarations: [
    AppComponent,
    .
    .
    ],
    imports: [
    AngularFireDatabaseModule,
    .
    .
    Ng5SliderModule,
    StoreModule.forRoot(appReducer),
    EffectsModule.forRoot(AppEffects),
    StoreDevtoolsModule.instrument(
    maxAge: 25, // Retains last 25 states
    logOnly: environment.production // Restrict extension to log-only mode
    )
    ],
    providers: [ApiService,DatePipe,MessagingService, AsyncPipe],
    bootstrap: [AppComponent]
    )
    export class AppModule









    share|improve this question
























      0












      0








      0








      Angular app is running fine with ng serve,but error shown when run with ng serve --prod




      ERROR in : Invalid provider for the NgModule 'ɵngrx_modules_effects_effects_b in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts' - only instances of Provider and Type are allowed, got: [ɵngrx_modules_effects_effects_f in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, EffectSources in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, Actions in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, ?null?, ...]




      app.module.ts



      import BrowserModule from '@angular/platform-browser';
      import NgModule from '@angular/core';
      import DatePipe from '@angular/common';
      .
      .
      import StoreDevtoolsModule from '@ngrx/store-devtools';
      import environment from 'src/environments/environment';
      import appReducer from './state-management/app.reducer';
      import AppEffects from './state-management/app.effects';
      import PdfViewerModule from 'ng2-pdf-viewer';
      .
      .
      import PdfReaderComponent from './shared/components/pdf-reader/pdf-
      reader.component';


      import AsyncPipe from '../../node_modules/@angular/common';
      @NgModule(
      declarations: [
      AppComponent,
      .
      .
      ],
      imports: [
      AngularFireDatabaseModule,
      .
      .
      Ng5SliderModule,
      StoreModule.forRoot(appReducer),
      EffectsModule.forRoot(AppEffects),
      StoreDevtoolsModule.instrument(
      maxAge: 25, // Retains last 25 states
      logOnly: environment.production // Restrict extension to log-only mode
      )
      ],
      providers: [ApiService,DatePipe,MessagingService, AsyncPipe],
      bootstrap: [AppComponent]
      )
      export class AppModule









      share|improve this question














      Angular app is running fine with ng serve,but error shown when run with ng serve --prod




      ERROR in : Invalid provider for the NgModule 'ɵngrx_modules_effects_effects_b in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts' - only instances of Provider and Type are allowed, got: [ɵngrx_modules_effects_effects_f in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, EffectSources in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, Actions in E:/TrainingPortal/node_modules/@ngrx/effects/effects.d.ts, ?null?, ...]




      app.module.ts



      import BrowserModule from '@angular/platform-browser';
      import NgModule from '@angular/core';
      import DatePipe from '@angular/common';
      .
      .
      import StoreDevtoolsModule from '@ngrx/store-devtools';
      import environment from 'src/environments/environment';
      import appReducer from './state-management/app.reducer';
      import AppEffects from './state-management/app.effects';
      import PdfViewerModule from 'ng2-pdf-viewer';
      .
      .
      import PdfReaderComponent from './shared/components/pdf-reader/pdf-
      reader.component';


      import AsyncPipe from '../../node_modules/@angular/common';
      @NgModule(
      declarations: [
      AppComponent,
      .
      .
      ],
      imports: [
      AngularFireDatabaseModule,
      .
      .
      Ng5SliderModule,
      StoreModule.forRoot(appReducer),
      EffectsModule.forRoot(AppEffects),
      StoreDevtoolsModule.instrument(
      maxAge: 25, // Retains last 25 states
      logOnly: environment.production // Restrict extension to log-only mode
      )
      ],
      providers: [ApiService,DatePipe,MessagingService, AsyncPipe],
      bootstrap: [AppComponent]
      )
      export class AppModule






      angular7






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 16:00









      AjithAjith

      274319




      274319






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315641%2ferror-while-serving-the-app-with-prod-in-angular%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55315641%2ferror-while-serving-the-app-with-prod-in-angular%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript