-
Notifications
You must be signed in to change notification settings - Fork 479
Error encountered resolving symbol values statically... #258
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
Comments
Thanks for the info @morphatic, we're looking into that error now. |
I've got the same issue. angular-cli: 1.0.0-beta.22-1 @angular/common": "^2.2.3 angular2-jwt": "^0.1.26 |
I think this might be related to this issue. |
tks |
@chenkie any news on the update to rxjs 5.0x and compatibility with angular 2.4? |
I am encountering this same issue. |
Upgraded to Angular CLI to latest today. I get the same error. |
Here I have the same error.
|
Try with the newly released 0.1.28. It resolves issues with rxjs versions. I ran the cli and didn't get any compile errors on the project when I ran it, but I don't think I've resolved AOT issues yet. I'm working on getting my large angular project upgraded to latest so I can make sure issues are resolved. |
Thanks @escardin I tried the version that you mentioned (0.1.28) but unfortunately I continue with the same error.
This is my current system info:
|
Yep, 0.1.28 didn't fix the issue that lead to this error:
|
Yeah you can't use AUTH_PROVIDERS with AOT afaik. |
The snippet above is the way to do it for now until the angular2-jwt export function authHttpServiceFactory(http: Http, options: RequestOptions) {
return new AuthHttp( new AuthConfig({}), http, options);
}
@NgModule({
declarations: [ AppComponent ],
imports: [ HttpModule ],
providers: [
{
provide: AuthHttp,
useFactory: authHttpServiceFactory,
deps: [ Http, RequestOptions ]
}
],
bootstrap: [ AppComponent ]
})
export class AppModule {} |
Just FWIW, the problem with @chenkie Any idea when the mentioned |
It's there, you can try it. It's not documented because it's not tested. The additional output from running ngc isn't published either. |
I ran into this issue too.
|
Thanks @chenkie you have saved my day |
I wanted to also comment that I was getting this issue as well using the angular-cli:
and
Was resolved using @morphatic's solutions. |
Thank you. -_- |
Add me to the list.
|
Thank you, @morphatic ! I was struggling with this issue for hours. I tried the Workaround 2 and it worked well. |
Same issue. Thank you @morphatic, Workaround 2 works great.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️ |
I just upgraded
angular-cli
andangular
and now I'm getting a compile error when runningng serve
:BTW, line 79 in
angular2-jwt.d.ts
reads:I'm using
auth0-lock
and followed the quickstart tutorial to get up and running.Workaround 1
It turns out that I don't have any services explicitly using the
AuthHttp
class, so I just commented out theimport { AUTH_PROVIDERS } from 'angular2-jwt';
andproviders: [ AUTH_PROVIDERS ]
lines fromapp.module.ts
and this seems to fix the issue. Of course, then I have to manually set theBearer jwt_token
value in my Authorization header, but at least it works...Workaround 2
If I use the alternative configuration approach with
provideAuth
, I don't get any errors. Here are the relevant bits from myapp.module.ts
file:Other Info
Here is my current system info:
I'm using
auth0-lock: 10.7.3
,angular2-jwt: 0.1.27
, and typescript v2.2.0-dev.20161218. Thanks for such great tools!!!The text was updated successfully, but these errors were encountered: