Skip to content

Deprecation warning in Node 16 #152

Closed
@magnihansen

Description

@magnihansen

When building my Angular 12 library application i'm getting a new deprecation warning after updating to Angular 12.

My warning message (local folders):
(node:9872) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\g\LogicmediaAngularNpm\logicmedia-angular\library-container-project\projects\logicmedia-angular\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./
".

I'm using tslib@2.3.0 and Angular 12.1.1
I'm compiling my Angular library application using Ivy partial compilation mode.

🙁 Actual behavior
My library application builds and my npm package can be published but publishing with red lines is not intended.

🙂 Expected behavior
Angular not showing these red lines when building.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions