首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Meteor下划线不能调用未定义的方法“exports”

Meteor下划线不能调用未定义的方法“exports”
EN

Stack Overflow用户
提问于 2014-03-16 12:01:30
回答 1查看 397关注 0票数 1

我尝试在meteor中使用下划线-字符串-最新包,但在启动时出现以下错误:

代码语言:javascript
复制
W20140316-01:08:50.265(8)? (STDERR) /Users/test1/.meteor/tools/f3947a4651/lib/node_modules/fibers/future.js:173
W20140316-01:08:50.265(8)? (STDERR)                         throw(ex);
W20140316-01:08:50.266(8)? (STDERR)                               ^
W20140316-01:08:50.269(8)? (STDERR) TypeError: Cannot call method 'exports' of undefined
W20140316-01:08:50.269(8)? (STDERR)     at Package (packages/underscore-string-latest/post.js:8)
W20140316-01:08:50.269(8)? (STDERR)     at packages/underscore-string-latest.js:80:4
W20140316-01:08:50.269(8)? (STDERR)     at packages/underscore-string-latest.js:89:3
W20140316-01:08:50.270(8)? (STDERR)     at /private/var/folders/__/74f_y9md49507s3q616snqw00000gn/T/meteor-test-run1no1trz/.meteor/local/build/programs/server/boot.js:155:10
W20140316-01:08:50.270(8)? (STDERR)     at Array.forEach (native)
W20140316-01:08:50.270(8)? (STDERR)     at Function._.each._.forEach (/Users/gunjan/.meteor/tools/f3947a4651/lib/node_modules/underscore/underscore.js:79:11)
W20140316-01:08:50.270(8)? (STDERR)     at /private/var/folders/__/74f_y9md49507s3q616snqw00000gn/T/meteor-test-run1no1trz/.meteor/local/build/programs/server/boot.js:82:5
=> Exited with code: 8

请帮助提出解决此问题的建议。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2014-03-16 12:20:10

您可以尝试删除该包,并将该库作为项目的一部分。例如,创建一个lib/underscore-string文件夹并将underscore.string.js放在其中,客户端和服务器端都可以访问该文件夹。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22432797

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档