开发者问题收集

Meteor 更新至 0.7.1.1 后出现故障,无法调用未定义的方法“split”

2014-02-26
561

这是我看到的完整错误:

/Users/myName/.meteor/tools/8d9edffd4f/lib/node_modules/fibers/future.js:173
                        throw(ex);
                              ^
TypeError: Cannot call method 'split' of undefined
  at Object.exports.parse (/Users/myName/.meteor/tools/8d9edffd4f/tools/parse-stack.js:18:26)
  at Object.exception (/Users/myName/.meteor/tools/8d9edffd4f/tools/buildmessage.js:355:28)
  at /Users/myName/.meteor/tools/8d9edffd4f/tools/packages.js:495:22
  at Array.forEach (native)
  at Function._.each._.forEach (/Users/myName/.meteor/tools/8d9edffd4f/lib/node_modules/underscore/underscore.js:79:11)
  at [object Object]._.extend.build (/Users/myName/.meteor/tools/8d9edffd4f/tools/packages.js:279:7)
  at /Users/myName/.meteor/tools/8d9edffd4f/tools/packages.js:1088:13
  at Array.forEach (native)
  at Function._.each._.forEach (/Users/myName/.meteor/tools/8d9edffd4f/lib/node_modules/underscore/underscore.js:79:11)
  at [object Object]._.extend.build (/Users/myName/.meteor/tools/8d9edffd4f/tools/packages.js:1087:7)
  at [object Object]._.extend.getForApp (/Users/myName/.meteor/tools/8d9edffd4f/tools/library.js:285:9)
  at /Users/myName/.meteor/tools/8d9edffd4f/tools/bundler.js:1762:25
  at Object.capture (/Users/myName/.meteor/tools/8d9edffd4f/tools/buildmessage.js:191:5)
  at Object.exports.bundle (/Users/myName/.meteor/tools/8d9edffd4f/tools/bundler.js:1697:31)
  at [object Object]._.extend._runOnce (/Users/myName/.meteor/tools/8d9edffd4f/tools/run-app.js:396:32)
  at [object Object]._.extend._fiber (/Users/myName/.meteor/tools/8d9edffd4f/tools/run-app.js:520:28)
  at /Users/myName/.meteor/tools/8d9edffd4f/tools/run-app.js:340:12

还有人遇到这个问题吗?

1个回答

找到了!

结果发现这是我的 Less 样式文件之一中的错误。使用了未定义的 @variable。

似乎 Meteor 0.7.1.1 中新更新的 Less 编译器不会像旧编译器那样抛出错误。希望他们能够获得错误报告,以便与新的 Less 编译器配合良好。

Dsyko
2014-02-26