Error in imports in 5.20242.30

Posted by: fradureau on 20 January 2025, 5:21 am EST

  • 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.

  • Posted 21 January 2025, 8:39 am EST

    Hi Florian,

    Thank you for reporting it to us, however, this is an already known issue and the engineering team is already working on this. You can refer to the following thread for more information about the same - https://developer.mescius.com/forums/wijmo/wijmo-compatibility-with-angular-19

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels