Closed enzolutions closed 6 years ago
Hi @enzolutions
import
is a statement from ES6 module syntax that is not natively supported in Node.js yet. You can either use Babel to transpile your code or use the following import instead:
const MongoBackup = require('mongodb-atlas-backup');
Please let me know if that works for you.
Hi @kysely
I tried to create a nodejs file to run your example.
But looks like the Node version I'm using v8.9.0 is not compatible with ES6 or something like that.
I got the following error
Any suggestions, about how to execute your example in command line using node?
Thanks in advance.