Can you provide more information about your environment and code? I just tested with this script using the node sdk v14.0.0 and am unable to reproduce this error. If you run the code below, do you still get the error?
I'm wondering if whatever you've done with async functions is interfering with the context of this inside of ApiClient.js. Could you also provide the full stack trace for the error that shows exactly where it's coming from in the code?
TypeError: Cannot read property 'proxy' of undefined
at C:\Users\kripette\OneDrive - Atea\Utvikling\Github\purecloud-notifications-channel\node_modules\purecloud-platform-client-v2\src\purecloud-platform-client-v2\ApiClient.js:218:16
at new Promise (<anonymous>)
at exports.loginClientCredentialsGrant (C:\Users\kripette\OneDrive - Atea\Utvikling\Github\purecloud-notifications-channel\node_modules\purecloud-platform-client-v2\src\purecloud-platform-client-v2\ApiClient.js:209:12)
at start (C:\Users\kripette\OneDrive - Atea\Utvikling\Github\purecloud-notifications-channel\example\app.js:14:18)
at Object.<anonymous> (C:\Users\kripette\OneDrive - Atea\Utvikling\Github\purecloud-notifications-channel\example\app.js:30:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)