Sendgrid-nodejs: 语法错误:意外标记 {

创建于 2017-10-04  ·  3评论  ·  资料来源: sendgrid/sendgrid-nodejs

问题摘要

使用最新版本的 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 行:
screen shot 2017-10-03 at 8 35 11 pm

question

最有用的评论

我在您的列表中发现了类似的问题。 问题是 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

所有3条评论

@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

感谢关注!

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

kiranshashiny picture kiranshashiny  ·  4评论

Loriot-n picture Loriot-n  ·  4评论

mikemaccana picture mikemaccana  ·  4评论

agostonbonomi picture agostonbonomi  ·  3评论

thinkingserious picture thinkingserious  ·  4评论