Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Exception is thrown when upgrading to latest master #22

Closed
kevmoo opened this issue Jul 29, 2016 · 5 comments
Closed

Exception is thrown when upgrading to latest master #22

kevmoo opened this issue Jul 29, 2016 · 5 comments
Assignees

Comments

@kevmoo
Copy link
Member

kevmoo commented Jul 29, 2016

EXCEPTION: Symbol("AppComponent") implements interfaces but does not declare them: Symbol("AfterContentChecked"), Symbol("AfterContentInit"), Symbol("AfterViewChecked"), Symbol("AfterViewInit"), Symbol("DoCheck"), Symbol("OnChanges"), Symbol("OnDestroy"), Symbol("OnInit"). See https://goo.gl/b07Kii for more info.

@matanlurey
Copy link
Contributor

This only occurs AFAIK when you compile to dart2js but leave reflection enabled.

This isn't really a supported use case :-/ Worth prioritizing @kevmoo ?

@kevmoo
Copy link
Member Author

kevmoo commented Jul 30, 2016

I thought my reflection was DISABLED.

Do we know how to turn it off? I thought my config was correct here.

@matanlurey
Copy link
Contributor

matanlurey commented Jul 30, 2016

Any gist you can share?

One way you can tell is look how big the binary is :) Or add this to your main():

if (reflector.reflectionCapabilities is! NoReflectionCapabilities) {
  throw 'Oops! We should not be using mirrors ever!';
}

@kevmoo
Copy link
Member Author

kevmoo commented Aug 4, 2016

I had my dart2js transformer running before (instead of after) the ng2 transformer. Fixing that fixed my issue.

@kevmoo kevmoo closed this as completed Aug 4, 2016
@matanlurey
Copy link
Contributor

@kevmoo Is it worth opening an issue for a simple tool/validate_ng2.dart that checks someone main.dart and pubspec to see if the transformers are setup correctly to help our external users?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants