teambit / envs

Component development environments for the Bit community
https://bit.dev/bit/envs
Other
63 stars 9 forks source link

Error: 'default' is not exported by ... in Angular project #118

Closed Tallyb closed 4 years ago

Tallyb commented 4 years ago

When importing components inside an angular using bit references such as

import { something } from @bit/owner.collection.component 

The above error may result in, pointing to tslib or other libraries inside the capsule. This seems to be resulting from https://github.com/ng-packagr/ng-packagr/issues/1383.

The suggestion here: https://github.com/ng-packagr/ng-packagr/issues/1383#issuecomment-539467647 can provide a fix.

{
  "angularCompilerOptions": {
    "module": "esNext"  // Delete this
  },
  ...
}