facebook

angular-ide ng builds successfully a project that give errors using angular ng

  1. CodeMix & Angular IDE
  2.  > 
  3. Getting Help
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #649852 Reply

    beleta1
    Participant

    I have an angular project that uses a library ngx-store that seems that is not compatible with Angular 9.

    If I run “ng build –prod” it builds the project with no problem.

    But if I run the same command outside Eclipse or using node_modules/.bin/ng i got the following error:

    ERROR in node_modules/ngx-store/src/ngx-store.d.ts:7:22 - error NG6002: Appears in the NgModule.imports of AppModule,
     but could not be resolved to an NgModule class.
    
    This likely means that the library (ngx-store) which declares WebStorageModule has not been processed correctly by ng
    cc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Al
    so consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
    
    7 export declare class WebStorageModule

    Could you explain this different behavior?

    #649883 Reply

    beleta1
    Participant

    It seems that the angular-ide ng command disables Ivy for Angular 9.

    It seems to me that you must advise users that Ivy is disabled when using Codemix.

    #649990 Reply

    support-swapna
    Moderator

    Hi,

    I have escalated this issue to the dev team. We will get back to you soon.
    Apologies for inconvenience caused.

    –Swapna
    Genuitec Support

    #650032 Reply

    Hi beleta1,

    As workaround, you can set SKIP_DISABLE_IVY environment variable in order to skip ivy disablement until we fix the main issue, like:
    SKIP_DISABLE_IVY=true ng serve.

    Cheers,
    Sal

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: angular-ide ng builds successfully a project that give errors using angular ng

You must be logged in to post in the forum log in