This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 231
Unhandled exception in the AngularDart compiler: type 'ParsedElementAst' is not a subtype of type 'EmbeddedTemplateAst' #1502
Comments
I put extra comments in if (isMicroExpression(starExpression)) {
NgMicroAst micro;
try {
micro = parseMicroExpression(
directiveName,
starExpression,
expressionOffset,
sourceUrl: astNode.sourceUrl,
origin: origin,
);
} catch (e) {
stderr.writeln("#### directiveName: $directiveName");
stderr.writeln("#### starExpression: $starExpression");
stderr.writeln("#### expressionOffset: $expressionOffset");
stderr.writeln("#### sourceUrl: ${astNode.sourceUrl}");
stderr.writeln("#### origin: $origin");
exceptionHandler.handle(e);
return astNode;
} I found out that
|
The ending |
sestegra
changed the title
type 'ParsedElementAst' is not a subtype of type 'EmbeddedTemplateAst'
Unhandled exception in the AngularDart compiler: type 'ParsedElementAst' is not a subtype of type 'EmbeddedTemplateAst'
Jul 18, 2018
Great bug report, thanks! |
Encountered the same bug myself, and I was quite confused for a while. Wrong: <ul>
<li *ngFor="let item of items;">{{ item }}</li>
</ul> Right: <ul>
<li *ngFor="let item of items">{{ item }}</li>
<ul> There's a really subtle difference between I'm quite sure I wouldn't have made any sense about the cryptic error message without @sestegra reporting this issue, so thanks a lot! |
matanlurey
added a commit
to matanlurey/angular
that referenced
this issue
Aug 17, 2018
5 tasks
alorenzen
pushed a commit
that referenced
this issue
Jan 11, 2019
…pression While the error reported in #1502 was fixed, the fix introduced a new, unhandled exception that would be reported as a bug in the compiler given the same inputs. PiperOrigin-RevId: 228791959
alorenzen
pushed a commit
that referenced
this issue
Jan 14, 2019
…pression While the error reported in #1502 was fixed, the fix introduced a new, unhandled exception that would be reported as a bug in the compiler given the same inputs. PiperOrigin-RevId: 228791959
alorenzen
pushed a commit
that referenced
this issue
Jan 17, 2019
…pression While the error reported in #1502 was fixed, the fix introduced a new, unhandled exception that would be reported as a bug in the compiler given the same inputs. PiperOrigin-RevId: 228791959
matanlurey
pushed a commit
that referenced
this issue
Jan 18, 2019
…pression While the error reported in #1502 was fixed, the fix introduced a new, unhandled exception that would be reported as a bug in the compiler given the same inputs. PiperOrigin-RevId: 228791959
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When compiling Angular component, I get this error
The text was updated successfully, but these errors were encountered: