zeyneloz / onesignal-node

A Node.js Library for OneSignal push notification service
MIT License
207 stars 48 forks source link

import syntax not working #36

Closed kartsims closed 4 years ago

kartsims commented 4 years ago

Hi,

Thanks for the great library!

I just upgraded from 2.x to 3.0.0 and unfortunately it seems that the import syntax is not working anymore.

I am working in Typescript, using ts-node to run my script but I suspect this is a global issue.

Please let me know if you need any further information or help testing/debugging on a branch.

Btw it is not a blocker for me since I'll just use the require syntax until this issue is solved.

klaaz0r commented 4 years ago

Have you tried: import * as OneSignal from "onesignal-node";?

kartsims commented 4 years ago

Sorry for the late reply. This was actually the issue, I feel stupid but thanks for pointing it out!