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

build: release output contains forward references that break at runtime #19454

Closed
lacolaco opened this issue May 27, 2020 · 4 comments · Fixed by #19498
Closed

build: release output contains forward references that break at runtime #19454

lacolaco opened this issue May 27, 2020 · 4 comments · Fixed by #19498
Assignees
Labels
area: dev-infra Issue related to internal project infrastructure P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful
Milestone

Comments

@lacolaco
Copy link
Contributor

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

Steps to reproduce:

  1. https://stackblitz.com/edit/angular-wudjzd?
  2. Downdoad app as zip
  3. open zip, npm install and npm start

Expected Behavior

As well as on Stackblitz, it should work correctly on the local environment. But it isn't.

Actual Behavior

Datepicker throws a runtime error.

image

I think maybe it is caused by ngcc process but I'm not sure.

Environment

Angular CLI: 10.0.0-rc.0
Node: 12.14.1
OS: darwin x64

Angular: 10.0.0-rc.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
Ivy Workspace: <error>

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.0-rc.0
@angular-devkit/build-angular     0.1000.0-rc.0
@angular-devkit/build-optimizer   0.1000.0-rc.0
@angular-devkit/build-webpack     0.1000.0-rc.0
@angular-devkit/core              10.0.0-rc.0
@angular-devkit/schematics        10.0.0-rc.0
@angular/cdk                      10.0.0-next.2
@angular/material                 10.0.0-next.2
@ngtools/webpack                  10.0.0-rc.0
@schematics/angular               10.0.0-rc.0
@schematics/update                0.1000.0-rc.0
rxjs                              6.5.5
typescript                        3.9.3
webpack                           4.43.0
@lacolaco lacolaco added the needs triage This issue needs to be triaged by the team label May 27, 2020
@devversion
Copy link
Member

Thanks for this issue. That is a known issue. It's related to: microsoft/TypeScript#27519 and angular/angular#30106.

@devversion devversion added area: dev-infra Issue related to internal project infrastructure P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful and removed needs triage This issue needs to be triaged by the team labels May 27, 2020
@devversion devversion added this to the 10.0.0 milestone May 27, 2020
@devversion devversion changed the title bug(date-picker): [10.0.0-next.2]MatDatepickerModule throws error build: release output contains forward references that break at runtime May 27, 2020
@mcalmus
Copy link
Contributor

mcalmus commented May 27, 2020

Any workarounds for this? In which version did this begin? I've successfully messed up my working copy of code but am not sure which change(s) caused the problem.

@devversion
Copy link
Member

@mcalmus It broke with angular/angular@a1001f2, and we started building release output with those changes in next.2. Staying on next.1 is the current workaround.

@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 Jul 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: dev-infra Issue related to internal project infrastructure P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants