ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Con
来源:互联网 发布:java开发工具怎么用 编辑:程序博客网 时间:2024/05/17 06:22
ERROR in Error encountered resolving symbol values statically. Call function 'provideAuth',
Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function
解决办法:
- Define your Authorization module like this:
@NgModule({ providers: [ { provide: AuthHttp, useFactory: authHttpServiceFactory, deps: [Http, RequestOptions] } ] }) export class AuthorizationModule { }
Export authHttpServiceFactory function somewhere in the same file
export function authHttpServiceFactory(http: Http, options: RequestOptions) { return new AuthHttp(new AuthConfig({ tokenName: 'token', tokenGetter: (() => localStorage.getItem('id_token')), globalHeaders: [{'Content-Type':'application/json'}], headerName: 'Authorization', headerPrefix: 'JWT', noJwtError: true }), http, options); }
阅读全文
0 0
- ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Con
- ERROR in Error encountered resolving symbol values statically. Reference to a non-exported class Log
- WSDLToJava Error: Rpc/encoded wsdls are not supported with CXF
- WSDLToJava Error: Rpc/encoded wsdls are not supported with CXF
- WSDLToJava Error: Rpc/encoded wsdls are not supported with CXF
- [ubuntu14.04] error: diskfilter writes are not supported
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- 转载:error LNK2019: unresolved external symbol __GSHandlerCheck referenced in function
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
- error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartu
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019: unresolved external symbol _WinMain referenced in function _WinMainCRTStartup
- error LNK2019: unresolved external symbol __imp__inet_ntoa@4 referenced in function
- error LNK2019:unresolved external symbol *** referenced in function ***的解决方案
- error LNK2019: unresolved external symbol _WinMain referenced in function
- Struts2与Cookie实现自动登录!
- App功耗优化
- 使用PhpStorm和Xdebug分析PHP应用程序
- Spark Streaming优雅的关闭策略优化
- python自动化测试android项目
- ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Con
- vue 新增数据实现双向绑定
- 使用 libTomCrypt 实现 AES、HMAC、HKDF 运算
- MySQL数据库中tinyint类型字段读取数据为true和false
- 算法提高 求最大值 DP
- Day16—Set 集合、Map 集合、异常机制
- Centos7下安装svn工具
- IO(输入输出)-字符流
- activiti 流程实例与业务关联