Posted 20 January 2025, 5:21 am EST - Updated 20 January 2025, 5:48 am EST
Hello,
I am currently migrating my project from Angular 18 to Angular 19.
In some tests, I’m still using the WjGridModule. It returns this error:
Error: Unexpected "WjFlexGrid" found in the "declarations" array of the "WjGridModule" NgModule, "WjFlexGrid" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
Unexpected "WjFlexGridColumn" found in the "declarations" array of the "WjGridModule" NgModule, "WjFlexGridColumn" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
Unexpected "WjFlexGridColumnGroup" found in the "declarations" array of the "WjGridModule" NgModule, "WjFlexGridColumnGroup" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
Unexpected "WjFlexGridCellTemplate" found in the "declarations" array of the "WjGridModule" NgModule, "WjFlexGridCellTemplate" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
Angular now uses “standalone” by default. If you don’t specify standalone: false, then your component is treated as such. This creates an issue when using Wijmo.
To fix this, you can move your components from “declarations” to “imports”.
Have a good day.