notifme / notifme-sdk

A Node.js library to send all kinds of transactional notifications.

Home Page:https://notifme.github.io/www/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

requiring 'notifme-sdk' results in error

lidorcg opened this issue · comments

when using require to import 'notifme-sdk' an error occur when trying to create a client.

the solution for me was:

const NotifmeSdk = require("notifme-sdk").default;

yes, that's expected since this lib uses es6 export syntax.