PostHog / posthog-node

Official PostHog Node library
MIT License
21 stars 19 forks source link

Unable to initialize in Electron app #72

Closed josteph closed 2 years ago

josteph commented 2 years ago

Problem

It seems the webpack target electron-main can't resolve the axios-retry module correctly.

Unhandled Promise rejection TypeError: axiosRetry is not a function

Is it currently possible to use this library with Electron app? If not, any how to fix the import error?

josteph commented 2 years ago

Sorry my bad, it seems there is already an open issue about webpack 4 with axios-retry module https://github.com/softonic/axios-retry/issues/206

josteph commented 2 years ago

Summary