mvertopoulos / vue-msal

Vue plugin for using Microsoft Authentication Library (MSAL)
MIT License
123 stars 66 forks source link

Errors trying to use vue-msal #13

Open jasonmuriel opened 4 years ago

jasonmuriel commented 4 years ago

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 commented 4 years ago

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.