據我所見,所有的javascript文件和html都是正確的。ReferenceError:模板未在Meteor中定義
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
它是失敗的一個模板,我有三個。
任何幫助找到問題可能會很好。
編輯: 我有他們三個都在一個子文件夾中,所有的JS是在客戶端/控制器。
對不起,但因爲我有三個模板,它們都在客戶端文件夾中分開,所以我不認爲這解決了問題。 感謝任何方式的回覆 –
無論如何你仍然需要使客戶端小寫。 –
謝謝你,真的很有道理 –