TS7016: Could not find a declaration file for module 'aurelia-oauth'.
keg7271 opened this issue · 2 comments
keg7271 commented
After following the directions the project I'm working with throws the following error: TS7016: Could not find a declaration file for module 'aurelia-oauth'. I'm running this on Asp.Net Core with webpack, does webpack need to be configured to understand the plugin in some way?
keg7271 commented
I executed the typings command noted in the instructions and how receive the following error:
ERROR in {PathToMyProject}\typings\modules\aurelia-oauth\index.d.ts
(165,71): error TS7006: Parameter 'oauthService' implicitly has an 'any' type.
4imble commented
Are you using webpack?
If so;- did you use PLATFORM.moduleName
to resolve the plugin?
aurelia.use.plugin(PLATFORM.moduleName('aurelia-oauth'), (oauthService, oauthTokenService, configureClient) =>
configureOauth(oauthService, oauthTokenService, configureClient, httpClient));