@AdamGelineau wrote:
Hi guys !
I have a weird error with my Ionic 4 Tabs app…
ERROR Error: Uncaught (in promise): Error: Cannot find 'MesExercicesPageModule' in '../mes-exercices/mes-exercices.module' Error: Cannot find 'MesExercicesPageModule' in '../mes-exercices/mes-exercices.module'
Here is the route in my tabs.router.module:
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { TabsPage } from './tabs.page'; const routes: Routes = [ { path: 'tabs', component: TabsPage, children: [ { path: 'mes-rdvs', children: [ { path: '', loadChildren: '../mes-rdvs/mes-rdvs.module#MesRdvsPageModule' } ] }, { path: 'mes-exercices', children: [ { path: '', loadChildren: '../mes-exercices/mes-exercices.module#MesExercicesPageModule' } ] }, ]
Here is the module:
import { IonicModule } from '@ionic/angular'; import { RouterModule } from '@angular/router'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { MesExercicesPage } from './mes-exercices.page'; import {AutosizeModule} from 'ngx-autosize'; @NgModule({ imports: [ IonicModule, CommonModule, FormsModule, RouterModule.forChild([{ path: '', component: MesExercicesPage }]), AutosizeModule ], declarations: [MesExercicesPage] }) export class MesExercicesPageModule {}
I have many other pages and tabs, and everything else work well. I can’t find any difference between this module and the others.
Feel free to ask for more code…
Posts: 1
Participants: 1