Describe the bug
In branch dspace-9_x, the file src/themes/dspace/eager-theme.module.ts
spreads DECLARATIONS into the imports array of the @NgModule decorator.
These components are not standalone, causing Angular NG2011 compile errors
that prevent the application from building.
Affected components:
- HeaderComponent
- HeaderNavbarWrapperComponent
- HomeNewsComponent
- NavbarComponent
DSpace version: 9.x (dspace-angular 9.3.0-next)
To Reproduce
- Clone the repo and checkout branch
dspace-9_x
- Run
npm run start:dev
- Build fails with NG2011 errors
Expected behavior
The app should compile successfully. The DECLARATIONS array should be in
declarations: [...DECLARATIONS], not in imports: [...DECLARATIONS].
Related work
Fix: move ...DECLARATIONS from imports to declarations in the
@NgModule decorator in src/themes/dspace/eager-theme.module.ts
Describe the bug
In branch
dspace-9_x, the filesrc/themes/dspace/eager-theme.module.tsspreads
DECLARATIONSinto theimportsarray of the@NgModuledecorator.These components are not standalone, causing Angular NG2011 compile errors
that prevent the application from building.
Affected components:
DSpace version: 9.x (dspace-angular 9.3.0-next)
To Reproduce
dspace-9_xnpm run start:devExpected behavior
The app should compile successfully. The
DECLARATIONSarray should be indeclarations: [...DECLARATIONS], not inimports: [...DECLARATIONS].Related work
Fix: move
...DECLARATIONSfromimportstodeclarationsin the@NgModuledecorator insrc/themes/dspace/eager-theme.module.ts