We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I just followed the docs and when using
ng build --prod I get the following error:
ng build --prod
It works if I don't run in prod mode.
prod
Here is my AppModule:
AppModule
import { NgModule } from "@angular/core"; import { Router } from "@angular/router/"; import { NgIdleModule } from "@ng-idle/core"; import { AppComponent } from "app/app.component"; import { AppRoutingModule } from "app/app-routing.module"; import { CoreModule } from "app/core/core.module"; import { SharedModule } from "app/shared/shared.module"; // Import your library import { SampleModule } from "@lotes/angular-library-name"; @NgModule({ declarations: [ AppComponent ], imports: [ NgIdleModule.forRoot(), CoreModule.forRoot(), SharedModule.forRoot(), AppRoutingModule, SampleModule ], bootstrap: [AppComponent], providers: [{ provide: "Window", useValue: window } ] }) export class AppModule { }
Here my app.component.html:
app.component.html
<sample-component> This component is part of the shared library and will now work as expected. </sample-component>
Is there any issue with AOT? Why is it not working in prod mode?
The text was updated successfully, but these errors were encountered:
I recreated the package and the problem was gone
Sorry, something went wrong.
I get a similar error in a different package. Can you tell me how you fixed it?
I am getting this issue too:
dolanmiu/ng-color#12
No branches or pull requests
Hello,
I just followed the docs and when using
ng build --prod
I get the following error:It works if I don't run in
prod
mode.Here is my
AppModule
:Here my
app.component.html
:Is there any issue with AOT? Why is it not working in prod mode?
The text was updated successfully, but these errors were encountered: