You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to implement the Electron provider into an existing application. Going through the tutorial on MSDN and the sample, I'm running into some issues.
I get errors trying to build after installing the dependencies, it seems that there are conflicts between types. I'll paste the error messages below as to try and declutter this post. I can get past the definition conflicts by adding "skipLibCheck": true, to my tsconfig.json, but this seems like more of a band-aid versus an ideal solution.
After the workaround, I get an error where I have an existing webContents.getPrintersAsync() call. The error message reads Property 'getPrintersAsync' does not exist on type 'WebContents'. Did you mean 'getPrinters'? I believe this has to do with the Electron MSAL provider using a very old Electron version. For reference I'm on 24.8.1, which is itself outdated for reasons. The provider uses ^11.0.2 which is presumably older than the appearance of getPrintersAsync().
My questions:
Is there another way to get around the type definition conflicts without the use of skipLibCheck?
Is there a way I can force the provider to work with newer versions of electron (while not forcing me to upgrade to the latest LTS)?
Unfortunately the app I'm working with is proprietary so I can't share the source here, however I could probably whip up a repro if it will help, just let me know.
Type definition conflict errors (there are many more than this, but this is one sample):
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm looking to implement the Electron provider into an existing application. Going through the tutorial on MSDN and the sample, I'm running into some issues.
"skipLibCheck": true,
to my tsconfig.json, but this seems like more of a band-aid versus an ideal solution.webContents.getPrintersAsync()
call. The error message readsProperty 'getPrintersAsync' does not exist on type 'WebContents'. Did you mean 'getPrinters'?
I believe this has to do with the Electron MSAL provider using a very old Electron version. For reference I'm on 24.8.1, which is itself outdated for reasons. The provider uses ^11.0.2 which is presumably older than the appearance ofgetPrintersAsync()
.My questions:
skipLibCheck
?Unfortunately the app I'm working with is proprietary so I can't share the source here, however I could probably whip up a repro if it will help, just let me know.
Type definition conflict errors (there are many more than this, but this is one sample):
Beta Was this translation helpful? Give feedback.
All reactions