Closed ianzone closed 9 months ago
Hi @ianzone, does the following syntax work?
const Nylas = require('nylas');
Just to clarify, we support CommonJS modules
Hi @ianzone, does the following syntax work?
const Nylas = require('nylas');
It does, but ESM is pretty much the standard for js libraries nowadays.
Agreed @ianzone. Ram and I chatted with @mrashed-dev on our SDK team and he has share that ESM support is going into active development in a sprint soon. We'll keep you posted.
Thanks @ianzone for submitting this issue, the feature is complete and will be included in the next major release of the SDK. We will have the first beta coming out very soon!
Closing this issue as it's been included in the v7 beta releases.
Describe the bug Nylas.config() is undefined, when using
import Nylas from 'nylas'
To Reproduce in test.ts
then run
ts-node test.ts
SDK Version: 6.10.0