Skip to content

Support Ivy compilation #22

@awadeson

Description

@awadeson

Could a change be made which would update @sergeymell/nativescript-svg to support Ivy partial compilation as described in this Angular blog post.

In the codebase I work on, @sergeymell/nativescript-svg is the only dependency that generates this message during build:

ERROR in src/app.module.ts:89:5 - error NG6002: 'NativeScriptSvgModule' does not appear to be an NgModule class.

89     NativeScriptSvgModule,
       ~~~~~~~~~~~~~~~~~~~~~

  node_modules/@sergeymell/nativescript-svg/angular/nativescript-svg-module.d.ts:1:22
    1 export declare class NativeScriptSvgModule {
                           ~~~~~~~~~~~~~~~~~~~~~
    This likely means that the library (@sergeymell/nativescript-svg/angular) which declares NativeScriptSvgModule is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

webpack 5.89.0 compiled with 1 error in 36577 ms

The availability of SVG plugins for angular & nativescript is quite poor, so this is a really useful library

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions