使用最新版本的 Meteor 1.5.2.2。 将@sendgrid/mail 添加到项目后,应用程序崩溃。 这是产生错误的代码:
const client = require('@sendgrid/client');
const {
classes: {
Mail,
},
} = require('@sendgrid/helpers');
日志:
W20171003-20:28:45.340(-4)? (STDERR) 包/modules.js:18016
W20171003-20:28:45.342(-4)? (STDERR) 常量 {
W20171003-20:28:45.342(-4)? (STDERR) ^
W20171003-20:28:45.345(-4)? (STDERR)
W20171003-20:28:45.346(-4)? (STDERR) 语法错误:意外的标记 {
W20171003-20:28:45.347(-4)? (STDERR) 在 Object.exports.runInThisContext (vm.js:53:16)
W20171003-20:28:45.348(-4)? (STDERR) 在 /Users/alex/projects/shopping-app/.meteor/local/build/programs/server/boot.js:332:30
模块中的第 18016 行:
嗨@polkhovsky ,
你的问题解决了吗?
最诚挚的问候,
埃尔默
我在您的列表中发现了类似的问题。 问题是 Meteor 1.5 使用的是 Node 4。我必须升级到 1.6 RC 才能完成这项工作。 谢谢!
2017 年 10 月 3 日晚上 9:31,Elmer Thomas通知@github.com 写道:
嗨@polkhovsky https://github.com/polkhovsky ,
你的问题解决了吗?
最诚挚的问候,
埃尔默
—
你收到这个是因为你被提到了。
直接回复本邮件,在 GitHub 上查看https://github.com/sendgrid/sendgrid-nodejs/issues/450#issuecomment-334026030 ,或者将线程静音https://github.com/notifications/unsubscribe-auth/ AEPsSFAp_mP2tn88u3JT01gzfBNfy_Spks5sot_XgaJpZM4Ps9Vb 。
感谢关注!
最有用的评论
我在您的列表中发现了类似的问题。 问题是 Meteor 1.5 使用的是 Node 4。我必须升级到 1.6 RC 才能完成这项工作。 谢谢!