Skip to content
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

TS7016: Could not find a declaration file for module 'aurelia-oauth'. #21

Open
keg7271 opened this issue Aug 31, 2018 · 2 comments
Open

Comments

@keg7271
Copy link

keg7271 commented Aug 31, 2018

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
Copy link
Author

keg7271 commented Aug 31, 2018

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
Copy link

4imble commented Jan 25, 2019

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));

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

No branches or pull requests

2 participants