Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(core): reenable decorator downleveling for Angular npm packages#37317

Closed
IgorMinar wants to merge 1 commit into
angular:masterangular/angular:masterfrom
IgorMinar:build/reenable-tsickle-annotationsAsIgorMinar/angular:build/reenable-tsickle-annotationsAsCopy head branch name to clipboard
Closed

fix(core): reenable decorator downleveling for Angular npm packages#37317
IgorMinar wants to merge 1 commit into
angular:masterangular/angular:masterfrom
IgorMinar:build/reenable-tsickle-annotationsAsIgorMinar/angular:build/reenable-tsickle-annotationsAsCopy head branch name to clipboard

Conversation

@IgorMinar

Copy link
Copy Markdown
Contributor

In #37221 we disabled tsickle passes from transforming the tsc output that is used to publish all
Angular framework and components packages (@angular/*).

This change however revealed a bug in the ngc that caused __decorate and __metadata calls to still
be emitted in the JS code even though we don't depend on them.

Additionally it was these calls that caused code in @angular/material packages to fail at runtime
due to circular dependency in the emitted decorator code documeted as
microsoft/TypeScript#27519.

This change partially rolls back #37221 by reenabling the decorator to static fields (static
properties) downleveling.

This is just a temporary workaround while we are also fixing root cause in ngc - tracked as
FW-2199.

Resolves FW-2198.
Related to FW-2196

@IgorMinar IgorMinar added area: build & ci Related the build and CI infrastructure of the project area: core Issues related to the framework runtime area: packaging Issues related to Angular's creation of npm packages target: patch This PR is targeted for the next patch release labels May 27, 2020
@ngbot ngbot Bot modified the milestone: needsTriage May 27, 2020
@mary-poppins

Copy link
Copy Markdown

You can preview b183949 at https://pr37317-b183949.ngbuilds.io/.

@IgorMinar IgorMinar force-pushed the build/reenable-tsickle-annotationsAs branch from b183949 to c753b43 Compare May 28, 2020 21:39
@mary-poppins

Copy link
Copy Markdown

You can preview c753b43 at https://pr37317-c753b43.ngbuilds.io/.

@IgorMinar IgorMinar force-pushed the build/reenable-tsickle-annotationsAs branch 2 times, most recently from fd0e9f5 to 038c613 Compare May 29, 2020 17:18
@mary-poppins

Copy link
Copy Markdown

You can preview 038c613 at https://pr37317-038c613.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview f851487 at https://pr37317-f851487.ngbuilds.io/.

@IgorMinar IgorMinar requested a review from alxhub May 29, 2020 19:51
@IgorMinar IgorMinar added the action: merge The PR is ready for merge by the caretaker label May 29, 2020
@IgorMinar IgorMinar marked this pull request as ready for review May 29, 2020 19:52
@pullapprove pullapprove Bot requested review from kara, kyliau and mhevery May 29, 2020 19:52

@kara kara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewed-for: global-approvers

Comment thread packages/bazel/src/ngc-wrapped/index.ts Outdated
Comment thread packages/bazel/src/ngc-wrapped/index.ts Outdated
@IgorMinar IgorMinar removed the request for review from mhevery May 29, 2020 21:13
In angular#37221 we disabled tsickle passes from transforming the tsc output that is used to publish all
Angular framework and components packages (@angular/*).

This change however revealed a bug in the ngc that caused __decorate and __metadata calls to still
be emitted in the JS code even though we don't depend on them.

Additionally it was these calls that caused code in @angular/material packages to fail at runtime
due to circular dependency in the emitted decorator code documeted as
microsoft/TypeScript#27519.

This change partially rolls back angular#37221 by reenabling the decorator to static fields (static
properties) downleveling.

This is just a temporary workaround while we are also fixing root cause in `ngc` - tracked as
FW-2199.

Resolves FW-2198.
Related to FW-2196
@IgorMinar IgorMinar force-pushed the build/reenable-tsickle-annotationsAs branch from f851487 to e56de29 Compare May 29, 2020 21:16
@mary-poppins

Copy link
Copy Markdown

You can preview e56de29 at https://pr37317-e56de29.ngbuilds.io/.

matsko pushed a commit that referenced this pull request May 29, 2020
…37317)

In #37221 we disabled tsickle passes from transforming the tsc output that is used to publish all
Angular framework and components packages (@angular/*).

This change however revealed a bug in the ngc that caused __decorate and __metadata calls to still
be emitted in the JS code even though we don't depend on them.

Additionally it was these calls that caused code in @angular/material packages to fail at runtime
due to circular dependency in the emitted decorator code documeted as
microsoft/TypeScript#27519.

This change partially rolls back #37221 by reenabling the decorator to static fields (static
properties) downleveling.

This is just a temporary workaround while we are also fixing root cause in `ngc` - tracked as
FW-2199.

Resolves FW-2198.
Related to FW-2196

PR Close #37317
@matsko matsko closed this in 4d0e175 May 29, 2020
ngwattcos pushed a commit to ngwattcos/angular that referenced this pull request Jun 25, 2020
…ngular#37317)

In angular#37221 we disabled tsickle passes from transforming the tsc output that is used to publish all
Angular framework and components packages (@angular/*).

This change however revealed a bug in the ngc that caused __decorate and __metadata calls to still
be emitted in the JS code even though we don't depend on them.

Additionally it was these calls that caused code in @angular/material packages to fail at runtime
due to circular dependency in the emitted decorator code documeted as
microsoft/TypeScript#27519.

This change partially rolls back angular#37221 by reenabling the decorator to static fields (static
properties) downleveling.

This is just a temporary workaround while we are also fixing root cause in `ngc` - tracked as
FW-2199.

Resolves FW-2198.
Related to FW-2196

PR Close angular#37317
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Jul 1, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…ngular#37317)

In angular#37221 we disabled tsickle passes from transforming the tsc output that is used to publish all
Angular framework and components packages (@angular/*).

This change however revealed a bug in the ngc that caused __decorate and __metadata calls to still
be emitted in the JS code even though we don't depend on them.

Additionally it was these calls that caused code in @angular/material packages to fail at runtime
due to circular dependency in the emitted decorator code documeted as
microsoft/TypeScript#27519.

This change partially rolls back angular#37221 by reenabling the decorator to static fields (static
properties) downleveling.

This is just a temporary workaround while we are also fixing root cause in `ngc` - tracked as
FW-2199.

Resolves FW-2198.
Related to FW-2196

PR Close angular#37317
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project area: core Issues related to the framework runtime area: packaging Issues related to Angular's creation of npm packages cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.