Using the latest version of Meteor 1.5.2.2. After adding @sendgrid/mail to the project, the application crashes. This is the code that produces the error:
const client = require('@sendgrid/client');
const {
classes: {
Mail,
},
} = require('@sendgrid/helpers');
Logs:
W20171003-20:28:45.340(-4)? (STDERR) packages/modules.js:18016
W20171003-20:28:45.342(-4)? (STDERR) const {
W20171003-20:28:45.342(-4)? (STDERR) ^
W20171003-20:28:45.345(-4)? (STDERR)
W20171003-20:28:45.346(-4)? (STDERR) SyntaxError: Unexpected token {
W20171003-20:28:45.347(-4)? (STDERR) at Object.exports.runInThisContext (vm.js:53:16)
W20171003-20:28:45.348(-4)? (STDERR) at /Users/alex/projects/shopping-app/.meteor/local/build/programs/server/boot.js:332:30
Line 18016 in modules:
Hi @polkhovsky,
Was your issue resolved?
With Best Regards,
Elmer
I found a similar issue in your list. The problem is Meteor 1.5 is using Node 4. I had to upgrade to 1.6 RC to make this work. Thank you!
On Oct 3, 2017, at 9:31 PM, Elmer Thomas notifications@github.com wrote:
Hi @polkhovsky https://github.com/polkhovsky,
Was your issue resolved?
With Best Regards,
Elmer
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/sendgrid/sendgrid-nodejs/issues/450#issuecomment-334026030, or mute the thread https://github.com/notifications/unsubscribe-auth/AEPsSFAp_mP2tn88u3JT01gzfBNfy_Spks5sot_XgaJpZM4Ps9Vb.
Thanks for following up!
Most helpful comment
I found a similar issue in your list. The problem is Meteor 1.5 is using Node 4. I had to upgrade to 1.6 RC to make this work. Thank you!