We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, compiling get this issue:
TS2339: Property 'paypalScriptLoaded' does not exist on type 'Window & typeof globalThis'.
How to fix?
The text was updated successfully, but these errors were encountered:
Hi, @dearste What a VSF version are you using?
Sorry, something went wrong.
@dearste This is specifics for you TS version on local, possible workaround https://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript/56402425#56402425
Or fast fix in use window['paypalScriptLoaded'] instead window.paypalScriptLoaded
window['paypalScriptLoaded']
window.paypalScriptLoaded
if (!isServer && config.hasOwnProperty('paypal') && config.paypal.addJsToGlobalHead && window['paypalScriptLoaded'] === undefined) { ... window['paypalScriptLoaded'] = true }
vsf-payment-paypal/hooks/beforeRegistration.ts
Line 7 in 760ac89
No branches or pull requests
TS2339: Property 'paypalScriptLoaded' does not exist on type 'Window & typeof globalThis'.
How to fix?
The text was updated successfully, but these errors were encountered: