First time using firestore and I\'m getting this error. It seems to be a problem with Ivy, from my research. I don\'t have a lot of experience modifying tsconfig.app.json, w
This works for me
Stop the ng server(ctrl+c)
Run Again
npm start / ng serve --open
Fixed it by opting out of Ivy as per documentation.
https://angular.io/guide/ivy
Change tsconfig.app.json to opt out of Ivy.
"enableIvy": false
This error occurs so often for me when i kept running ng serve on and trying to import same modules like RouterModule etc.
Every time restarting the application works fine for me (ng serve) .
Your module is not yet loaded by the Angular Server in node
ng serve
, so restart your server so the server loads the module that you just added in @NgModule app.module.ts
Try to restart the server and launch it back using npm start
I was adding service
to module i.e. app.module.ts
. I added it into imports
array instead of providers
array.
@NgModule({
imports: [
MyService // wrong here
],
providers: [
MyService // should add here
]
})
export class AppModule { }