vue-msal icon indicating copy to clipboard operation
vue-msal copied to clipboard

Errors trying to use vue-msal

Open jasonmuriel opened this issue 5 years ago • 1 comments

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 avatar Dec 12 '19 22:12 jasonmuriel

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.

jasonmuriel avatar Dec 13 '19 19:12 jasonmuriel