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

ng-packagr was not updated #12642

Closed
piernik opened this issue Oct 19, 2018 · 9 comments · Fixed by #12768
Closed

ng-packagr was not updated #12642

piernik opened this issue Oct 19, 2018 · 9 comments · Fixed by #12768
Assignees
Labels
freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@piernik
Copy link

piernik commented Oct 19, 2018

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [x] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Repro steps

The log given by the failure

Desired functionality

I just updated to 7.0.0 using command ng update @angular/cli @angular/core.
But ng-packagr was not updated and also there was problem with tsickle versioning.
Now since ng-packagr is used for generating library it should be updated as well.

Mention any other details that might be useful

@filipesilva filipesilva added type: bug/fix freq1: low Only reported by a handful of users who observe it rarely severity3: broken comp: schematics/update labels Oct 19, 2018
@ngbot ngbot bot modified the milestone: Backlog Oct 19, 2018
@alexeagle alexeagle modified the milestones: Backlog, 7.0.2 Oct 22, 2018
@JonnyBGod
Copy link

Any temporary workaround for this?

@alexeagle
Copy link
Contributor

tsickle was removed as a dependency from Angular v7
But we forgot to remove it from ng-packagr and build-ng-packagr. See https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/library/index.ts#L115

@alexeagle
Copy link
Contributor

Note, this means that libraries published by CLI will no longer be compatible with Closure Compiler downstream consumption by default. To build a library that works with Closure Compiler, you'll have to manually add the tsickle dependency, and get on a version of TypeScript that works with tsickle, which may lag the version used/required by Angular.
/cc @mprobst

@alan-agius4
Copy link
Collaborator

tsickle version 0.33.1 now supports TypeScript 3.1.1

@alan-agius4 alan-agius4 added the needs: discussion On the agenda for team meeting to determine next steps label Oct 25, 2018
@alexeagle alexeagle removed the needs: discussion On the agenda for team meeting to determine next steps label Oct 25, 2018
@alan-agius4
Copy link
Collaborator

Follow a discussion in our team meeting. We feel that we should only update @angular-devkit/build-ng-packagr.

This is to have the same workflow as for other non Angular CLI/Devkit packages that are used within a CLI project such @angular/<packages>, TypeScript, Karma, tslint, tsickle etc... All the mentioned packages needs to be manually updated by the consumers and thus ng-packagr should be no different.

@rdhelms
Copy link

rdhelms commented Oct 26, 2018

Sorry, so just to clarify regarding the role of tsickle - you're saying for now we can use the updated tsickle version 0.33.1 and be fine, but should we be on the lookout for an opportunity to totally remove tsickle as a dependency? Is there another existing issue for us to track that?

@alan-agius4
Copy link
Collaborator

No at the moment there is no existing issue to remove tsickle.

@playground
Copy link

playground commented Apr 20, 2019

I'm running into the similar issue when try to update.

    We analyzed your package.json, there are some packages to update:
    
      Name                               Version                  Command to update
     --------------------------------------------------------------------------------
      @angular/cdk                       7.1.0 -> 7.3.7           ng update @angular/cdk
      @angular/core                      7.1.0 -> 7.2.13          ng update @angular/core
      @angular/material                  7.1.0 -> 7.3.7           ng update @angular/material
      rxjs                               6.3.3 -> 6.4.0           ng update rxjs
    
    
    There might be additional packages that are outdated.
    Run "ng update --all" to try to update all at the same time.
    
  ~/workspace/myapp   update-cli ●  ng update --all
                  Package "tsickle" has an incompatible peer dependency to "typescript" (requires "~3.3.1", would install "3.4.4")
                  Package "@angular-devkit/build-ng-packagr" has an incompatible peer dependency to "ng-packagr" (requires "^2.2.0 || ^3.0.0 || ^4.0.0", would install "5.1.0").
                  Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.8.26", would install "0.9.0")
                  Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.8.26", would install "0.9.0").
                  Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.1.1 <3.3", would install "3.4.4").
Incompatible peer dependencies found. See above.

@angular-automatic-lock-bot
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.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants