4

I am updated my npm package from angular 7.2 to angular 8.2, the problem I have now in my ng-package.json is that Property externals is not allowed.?

Here is my ng-package.json

  "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
  "dest": "../../dist/my-shared-lib",
  "whitelistedNonPeerDependencies": [
    "ngx-toastr",
    "@auth0/angular-jwt",
    "bootstrap",
    "font-awesome"
  ],
  "lib": {
    "entryFile": "src/public_api.ts",
    "externals": {
      "ngx-toastr": "ngx-toastr",
      "@auth0/angular-jwt": "@auth0/angular-jwt",
      "bootstrap": "bootstrap",
      "font-awesome": "font-awesome"
    }
  }
}

I dont know what to do with externals? Thanks in advance

Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142

1 Answers1

0

lib.externals has been removed in favour of lib.umdModuleIds.

More details in the migration guide: https://github.com/ng-packagr/ng-packagr/blob/master/CHANGELOG.md#migrating-from-v1-breaking-changes-from-v160-to-v200

Ravi Chandan
  • 3
  • 1
  • 4