Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 13 Library watch rebuild with managed assets #2168

Closed
sunil-tf opened this issue Nov 22, 2021 · 2 comments · Fixed by #2169
Closed

Angular 13 Library watch rebuild with managed assets #2168

sunil-tf opened this issue Nov 22, 2021 · 2 comments · Fixed by #2169
Labels

Comments

@sunil-tf
Copy link

Type of Issue

[ X] Bug Report
[ ] Feature Request

Description

In an angular library project upgraded to angular 13 added sass export in library package.json following instructions in https://angular.io/guide/creating-libraries#managing-assets-in-a-library

"exports": {
    "./theme": {
      "sass": "./_theme.scss"
    },

The library is built using ng build --watch and builds ok first time.
On subsequent rebuilds , getting an error

✔ Compiling with Angular sources in Ivy full compilation mode.
✔ Writing FESM bundles
✔ Copying assets
✖ Writing package manifest
ERROR: Found a conflicting export condition for "./package.json". The "default" condition would be overridden by ng-packagr. Please unset it.

If i remove the exports entry from library package.json then rebuilds work ok.

How To Reproduce

Mentioned above.

Expected Behaviour

Rebuild without errors

Version Information

ng-packagr:            13.0.6
@angular/compiler:     13.0.2
rollup:                2.60.0
typescript:            4.4.4
node: v14.18.1
npm : 6.14.15
@sunil-tf
Copy link
Author

Thanks @alan-agius4 rebuild works ok with 13.0.7

@github-actions
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

2 participants