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

Errors trying to use vue-msal #13

Open
jasonmuriel opened this issue Dec 12, 2019 · 1 comment
Open

Errors trying to use vue-msal #13

jasonmuriel opened this issue Dec 12, 2019 · 1 comment

Comments

@jasonmuriel
Copy link

I installed vue-msal and all dependencies listed but I get the following errors when trying to follow the examples.

Could not find a declaration file for module 'vue-msal'. '/Vue/mdi-webclient/node_modules/vue-msal/dist/plugin.js' implicitly has an 'any' type.
Try npm install @types/vue-msal if it exists or add a new declaration (.d.ts) file containing declare module 'vue-msal';

This occurs on the line : import msal from 'vue-msal'

I tried adding declaring the module but then I get the error with 'this.$msal' afterwards.

New to vuejs so i'm using latest install.

Please let me know if i'm missing anything.

@jasonmuriel
Copy link
Author

Issue was with my installation apparently. I uninstalled vue and reinstalled it. I created a 'msal.d.ts' type file to correct the error and now it works.

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

1 participant