Skip to content

adev: Local packages not linked properly for development #54858

Closed

Description

@devversion

Unlike with aio, adev only links top-level @angular/ packages to their npm archives from HEAD. Transitive dependencies are not properly updated, like we do for AIO— this means that adev may run with older versions of the Angular compiler because e.g. the CLI devkit would have their own transitive dependency.

This can cause subtle build issues when making changes in the compiler. We should investigate if this is still needed, but not throw away the effort put into AIO:

def link_local_packages(all_aio_deps):
"""Create targets needed for building AIO against local angular packages.
Creates targets that link Angular packages, as well as targets to be used
in place of any deps required to build and test AIO. These targets filter
out any transitive deps on the npm packages and must be used in place of
any original list of deps.
Use the helper `substitute_local_package_deps()` to translate a list of deps
to the equivalent "filtered" target that this rule creates.

Additional context: 6cc3256

Activity

  1. added this to the needsTriage milestone on Mar 14, 2024
  2. added
    P2
    on Mar 14, 2024
  3. modified the milestones: needsTriage, Backlog on Mar 14, 2024
  4. added
    P3
    and removed
    P2
    on Mar 14, 2024
  5. added
    area: dev-infra
    on Mar 27, 2024
  6. JeanMeche commented on Apr 7, 2024

    @JeanMeche
    Member

    This is probably related, I've noticed that the ADEV app is not build against the local packages. See #55161 where I had to rely on a temporary patch-package to fix an issue which was already fixed locally.

  7. devversion commented on Apr 10, 2024

    @devversion
    MemberAuthor

    Yeah, the packages are not picked up and this makes it difficult to also use new compiler features in adev that aren't released yet

  8. devversion commented on Apr 10, 2024

    @devversion
    MemberAuthor

    I believe this would also fix issues like:

    angular-dev:serve                        ................................................................................ (0/1) 
    This version of CLI is only compatible with Angular versions ^17.0.0 || ^17.3.0-next.0,
    but Angular version 18.0.0-next.3 was found instead.
    Please visit the link below to find instructions on how to update Angular.
    

    where the angular-devkit accidentally sees @angular/core from the @angular/docs package installed in then workspace-level dependencies.

  9. 16 remaining items

  10. added a commit that references this issue on Feb 14, 2025
  11. added a commit that references this issue on Feb 21, 2025
  12. added a commit that references this issue on Apr 10, 2025
    7fc14d7
  13. angular-automatic-lock-bot commented on May 11, 2025

    @angular-automatic-lock-bot

    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.

  14. locked and limited conversation to collaborators on May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: dev-infraarea: docs-infra

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions