error: 'Right-hand side of 'instanceof' is not an object' after updating to 2.0.0
Hi! After upgrading to 2.0.0 I got a error:

and in the:
@UIRouterModule({
imports: [
CommonModule,
NgbModule,
FormsModule,
],


I think this was fixed by 7c54b751bf25f3f07250bc9769917d58b1d30934
Getting same error with 1.0.0-beta.2 .
Is there workaround for this? Cannot find what exactly in my app is causing this issue. Commented out almost everything in my app but still getting this error. Is this error happens to everyone using 1.0.0-beta.2 or there is something specific in configuration, etc.?
@erik-rope, what version of typescript you are using?
@kolkov I'm actually not using TS. Using ES6 instead. How is it related?
Angular 2.0.0 removed all the *MetaData classes. We were checking instanceof ComponentMetadata, but ComponentMetadata is undefined in 2.0.0.
https://github.com/angular-ui/ui-router/commit/7c54b751bf25f3f07250bc9769917d58b1d30934#commitcomment-19100421
This hasn't been released, but will be as beta.3 (later this week, probably)
@erik-ropez you can either:
- wait for beta.3 and stay on angular 2.0.0-rc.6
- build ui-router-ng2 off
mastertoday
@christopherthielen, tried to build but failed with #3025.
Thanks! Fixed with new version.
@erik-ropez if you're still having trouble building, I built latest master:
https://rawgit.com/christopherthielen/4170db48d3cafd3dc5948042fdaa7312/raw/54f4910fdca5c9c6afb5eddee3d6fc2476d73c4c/ui-router-ng2.js
in Angular6 am getting below error
