ReferenceError:Meteor中未定义模板 [英] ReferenceError: Template is not defined in Meteor
本文介绍了ReferenceError:Meteor中未定义模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
据我所知,所有的javascript文件和HTML都是正确的。
As far as I can see all the javascript files and html are correct.
W20151006-00:40:17.144(0)? (STDERR)
W20151006-00:40:17.145(0)? (STDERR) /home/nitrous/.meteor/packages/meteor-tool/.1.1.9.b2s4xu++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib
/node_modules/fibers/future.js:245
W20151006-00:40:17.147(0)? (STDERR) throw(ex);
W20151006-00:40:17.149(0)? (STDERR) ^
W20151006-00:40:17.158(0)? (STDERR) ReferenceError: Template is not defined
W20151006-00:40:17.158(0)? (STDERR) at Client/Controllers/convert.js:1:1
W20151006-00:40:17.159(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/app/Client/Controllers/convert.js:33:4
W20151006-00:40:17.159(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/boot.js:242:10
W20151006-00:40:17.159(0)? (STDERR) at Array.forEach (native)
W20151006-00:40:17.159(0)? (STDERR) at Function._.each._.forEach (/home/nitrous/.meteor/packages/meteor-tool/.1.1.9.b2s4xu++os.linux.x86_64+web.browser+web.cordova/mt-os.
linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151006-00:40:17.159(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/boot.js:137:5
=> Exited with code: 8
W20151006-00:40:21.743(0)? (STDERR)
W20151006-00:40:21.744(0)? (STDERR) /home/nitrous/.meteor/packages/meteor-tool/.1.1.9.b2s4xu++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib
/node_modules/fibers/future.js:245
W20151006-00:40:21.745(0)? (STDERR) throw(ex);
W20151006-00:40:21.747(0)? (STDERR) ^
W20151006-00:40:21.757(0)? (STDERR) ReferenceError: Template is not defined
W20151006-00:40:21.757(0)? (STDERR) at Client/Controllers/convert.js:1:1
W20151006-00:40:21.757(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/app/Client/Controllers/convert.js:33:4
W20151006-00:40:21.757(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/boot.js:242:10
W20151006-00:40:21.757(0)? (STDERR) at Array.forEach (native)
W20151006-00:40:21.757(0)? (STDERR) at Function._.each._.forEach (/home/nitrous/.meteor/packages/meteor-tool/.1.1.9.b2s4xu++os.linux.x86_64+web.browser+web.cordova/mt-os.
linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20151006-00:40:21.758(0)? (STDERR) at /home/nitrous/Assignment_1a/.meteor/local/build/programs/server/boot.js:137:5
我正在使用
autopublish 1.0.4
blaze-html-templates 1.0.1
ecmascript 0.1.5
es5-shim 4.1.13
insecure 1.0.4
jquery 1.11.4
meteor-base 1.0.1
mobile-experience 1.0.1
mongo 1.1.2
session 1.1.1
standard-minifiers 1.0.1
tracker 1.0.9
twbs:bootstrap 3.3.5
在一个模板上失败,我有三个。
It is failing on one template, I have three.
任何有助于找到问题的帮助都会很棒。
Any help to find what the issue might be would be great.
编辑:
我让他们三个都在子文件夹中,所有的js都在Client / Controllers中。
I have them all three are in a sub-folder, all of the js is in Client/ Controllers.
推荐答案
Meteor的目录结构区分大小写。使用客户端
而不是客户端
来解决您的问题。
Meteor's directory structure is case sensitive. Use client
instead of Client
to solve your issue.
这篇关于ReferenceError:Meteor中未定义模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文