【问题标题】:Meteor Keeps Giving Me An Unexpected String Error When Running My PackageMeteor 在运行我的包时不断给我一个意外的字符串错误
【发布时间】:2015-03-17 15:18:53
【问题描述】:

我一直在尝试将另一个静态页面添加到我的“telescope-static-pages”包中,每当我告诉 Meteor 在哪里添加或更新这个包时,它似乎都会在下面给我这个错误:

代码对我来说似乎是正确的,但也许我遗漏了一些东西。

=> Errors while initializing project: While reading package from `/root/Telescope/packages/telescope-static-pages`:package.js:23:5: Unexpected 


api.add_files([
    'lib/client/templates/about_page.html',
    'lib/client/templates/about_link.html',
    'lib/client/about.js'
    'lib/client/templates/contact_page.html',
    'lib/client/templates/contact_link.html',
    'lib/client/contact.js'
  ], ['client']);

});

【问题讨论】:

    标签: meteor telescope


    【解决方案1】:

    'lib/client/about.js' 后面漏了一个逗号

    【讨论】:

    • 谢谢!猜猜我只是错过了那个逗号! :) 有时您只需要用另一只眼来查看代码。
    • 发生在我们最好的人身上!
    猜你喜欢
    • 2013-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-16
    • 1970-01-01
    • 2017-05-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多