lundi 25 mars 2019

using microsoft adal angular6 gives types errors from node_modules/@types

im setting up new Authentication for a client who uses Active directory. ive installed the microsoft-adal-angular6, and when this packge installed I get the following error when using webpack :

 ERROR in node_modules/@types/jquery/index.d.ts(8186,5): error TS2717: 
 Subsequent property declarations must have the same type.  Property 
 'char' 
  must be of type 'string', but here has type 'any'.
 node_modules/@types/jquery/index.d.ts(8188,5): error TS2717: Subsequent 
 property declarations must have the same type.  Property 'key' must be of 
 type 'string', but here has type 'any'.

Since I had no idea what might go wrong, I eliminated everything from my code (deleting everything ive added for the configuration, and left only the installation itself), and found out that this package is probebly making the error directly.

did anyone encountered this behavior before with this package? did anyone used it successfully? in case I wont be able to fix this issue, is there a downside using another package thats in not directly meant from angular 6? like angular 4?




Aucun commentaire:

Enregistrer un commentaire