Encountered this error while trying to load the TableModule from primeng into my components module file and running 'npm run packagr':
Maximum call stack size exceeded
To address this, I switched my primeng version from primeng12 to primeng11.4.5. However, now a new error has emerged:
Angular structure loaded both synchronously and asynchronously
Here is my components module file:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HeaderComponent } from './header.component';
import { TableModule } from 'primeng/table';
@NgModule({
declarations: [HeaderComponent],
imports: [CommonModule, TableModule],
exports: [HeaderComponent],
})
export class HeaderModule {} //RED LINE APPEARS HERE UNDER HEADERMODULE, BUT NOWHERE ELSE
Any suggestions on how to resolve this issue?