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
Ivy (aot) Could not resolve [object Object] / undefined at Scope.resolve #39744
Comments
@jaffbeto Heya, this looks like a bug but it's unclear what the cause is. Could you share a reproduction for us to investigate? Thanks! |
I was able to reproduce this error by accidently using a capital "F" in a form control... once I changed it to... |
Same for me, after update from error log
node angular cli
package.json
|
@joebieb Thank you, that has helped in finding the issue. It appears to have regressed in #38618, where referring a reference that is bound to an unknown directive now crashes. Before, it would have reported an error:
I'm working on a fix. |
…stead of crashing If a template declares a reference to a missing target then referring to that reference from elsewhere in the template would crash the template type checker, due to a regression introduced in angular#38618. This commit fixes the crash by ensuring that the invalid reference will resolve to a variable of type any. Fixes angular#39744
The problem in my project, is inside this page. When i comment out all the code, is working. when i enable the code, i get this error. The HTML file:
The TS File: import { Component, Inject, Input, OnInit, ViewChild } from '@angular/core'; export interface Element { const ELEMENT_DATA: Element[] = [ @component({ export class ExportTableComponent implements OnInit { constructor(public dialogRef: MatDialogRef,
} |
…stead of crashing (#39805) If a template declares a reference to a missing target then referring to that reference from elsewhere in the template would crash the template type checker, due to a regression introduced in #38618. This commit fixes the crash by ensuring that the invalid reference will resolve to a variable of type any. Fixes #39744 PR Close #39805
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 bug report
Affected Package
The issue is caused by package @angular/compiler-cliDescription
this its only in Angular 11.0.0
enable ivy
run ng build --aot
or
"aot": true
in angular.jsonthis same bug 30677
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: