当 运行 我的包裹时,Meteor 一直给我一个意外的字符串错误
Meteor Keeps Giving Me An Unexpected String Error When Running My Package
我一直在尝试向我的 "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']);
});
您在 'lib/client/about.js'
后面漏了一个逗号
我一直在尝试向我的 "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']);
});
您在 'lib/client/about.js'