Topic: AOT Build Error
Basil123456 pro asked 6 years ago
*Expected behavior*AOT build should happen without any issue.
*Actual behavior* While Doing AOT Build , I am getting issues in stating Module not found: Error: Can't resolve '../../../resources/ng-uikit-pro-standard/ng-uikit-pro-standard.ngfactory'*strong text*
Resources (screenshots, code snippets etc.) import { HttpClientModule } from '@angular/common/http';import { CUSTOM_ELEMENTS_SCHEMA, NgModule, NgModuleFactoryLoader, NO_ERRORS_SCHEMA, SystemJsNgModuleLoader,} from '@angular/core';import { HttpModule } from '@angular/http';import { BrowserModule } from '@angular/platform-browser';import { UIRouterModule } from '@uirouter/angular';import { LocalStorageModule } from 'angular-2-local-storage';import { MDBBootstrapModulesPro } from 'src/resources/ng-uikit-pro-standard';
import { AppComponent } from './app.component';import { BaseRepositoryService } from './core/services/BaseRepositoryService';import { Broadcaster } from './core/services/broadcast-event';import { AuthModule } from './modules/auth/auth.module';import { LandingPageModule } from './modules/landing-page/landing-page.module';import { LayoutModule } from './shared/layout/layout.module';
@NgModule({ declarations: [AppComponent], imports: [ BrowserModule, HttpModule, HttpClientModule, MDBBootstrapModulesPro.forRoot(), UIRouterModule.forRoot({ useHash: true, otherwise: '/' }), LocalStorageModule.withConfig({ prefix: 'travesys', storageType: 'localStorage' }), LayoutModule, AuthModule, LandingPageModule, ], exports: [], providers: [{ provide: NgModuleFactoryLoader, useClass: SystemJsNgModuleLoader }, Broadcaster, BaseRepositoryService], bootstrap: [AppComponent], schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA]})export class AppModule { }
Damian Gemza staff answered 6 years ago
Dear @Basil123456
How can I reproduce this problem on my side? Please provide me with the reproduce steps, because, without that information, I won't be able to help you well.
Also, is it possible to send me your app via email? I would like to debug it and check if there is a problem with your app, or on our side.
You can find me here: d.gemza@mdbootstrap.com
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.0
- Device: laptop
- Browser: CHROME
- OS: windows pro
- Provided sample code: No
- Provided link: No