angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.78k stars 11.98k forks source link

Problems with library build, when exists dependencies between modules #17654

Closed Noeldesarrollo closed 4 years ago

Noeldesarrollo commented 4 years ago

🐞 Bug report

Command (mark with an x)

Is this a regression?

I don't know exactly, using cli 7.2.4 version there is no problem

Description

Test done with angular 9 library. At start, we have two modules that are packed in the same library, with paths (aliases) relative to the root library. One of modules, have as dependency some service of other module. And now we have problems executing the build task.

🔬 Minimal Reproduction

You could be able to reproduce 2 different errors. First clone that repo and launch npm install. Now you can launch ng build --prod and get one kind of error, and launch ng build to get another kind of error

This is repo: https://github.com/Noeldesarrollo/angular9-lib-build-issue

🔥 Exception or Error

Error throwed by ng build --prod image

Error throwed by ng build image

🌍 Your Environment

ng version 9.1.1

angular-automatic-lock-bot[bot] commented 4 years ago

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

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.