2016-04-07 2 views
0

私はただ1.3へのアップデートを行っており、このエラーの対処方法がわかりません。 1.3で変更されたファイルの読み込み順序と関係があるかもしれないと思っています。何か案は?ありがとう!Meteor 1.3アップデートの移行

W20160407-09:54:43.528(1)? (STDERR) /Users/technical/.meteor/packages/meteor-tool/.1.3.1.10rlef4++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:267 
W20160407-09:54:43.528(1)? (STDERR)       throw(ex); 
W20160407-09:54:43.528(1)? (STDERR)        ^
W20160407-09:54:43.553(1)? (STDERR) TypeError: Cannot read property 'path' of undefined 
W20160407-09:54:43.553(1)? (STDERR)  at Routing (packages/lookback:emails/lib/routing.js:17:9) 
W20160407-09:54:43.554(1)? (STDERR)  at packages/lookback:emails/lib/mailer.js:279:11 
W20160407-09:54:43.554(1)? (STDERR)  at Array.forEach (native) 
W20160407-09:54:43.554(1)? (STDERR)  at packages/lookback:emails/lib/mailer.js:278:28 
W20160407-09:54:43.554(1)? (STDERR)  at Function._.each._.forEach (packages/underscore.js:147:22) 
W20160407-09:54:43.554(1)? (STDERR)  at Object.init (packages/lookback:emails/lib/mailer.js:274:9) 
W20160407-09:54:43.554(1)? (STDERR)  at Object.Mailer.init (packages/lookback:emails/lib/mailer.js:303:7) 
W20160407-09:54:43.554(1)? (STDERR)  at app/server/lib/config/config.js:72:8 
W20160407-09:54:43.554(1)? (STDERR)  at /Users/technical/code/mssc1.3/.meteor/local/build/programs/server/boot.js:290:5 

server/lib/config/config.js

Meteor.startup(function() { 

this.Templates = {} 
Templates.remindEventEmail = { 
    path: 'remindEventEmail.html' 
}; 

Mailer.init({ 
    templates: Templates 
    }); 

}); 

private/remindEventEmail.html

<p>Email code<p> 

答えて

1

それはあなたが電子メールのプレビューを必要としない場合、それはルックバック> 0.7.0事

だ、1.3のものではありません、単純に設定する

Mailer.config({ 
    addRoutes: false 
}); 

が問題を解決する場合があります。あなたが今、あなたのテンプレートオブジェクト

https://github.com/lookback/meteor-emails#version-history

route: { 
path: '/sample/:name', 
// params is an object, with potentially named parameters, and a `query` property 
// for a potential query string. 
data: function(params) { 
    // `this` is the HTTP response object. 
    return { 
    name: params.name // instead of this.params.name 
    }; 
} 
} 

でルートフィールドを指定する必要があり

そう私はに応じてフロールータ

でそれを使用する方法のために一緒に従いますだからあなたの

Templates.remindEventEmail = { 
    path: 'remindEventEmail.html' 
}; 

なるべき

Templates.remindEventEmail = { 
    path: 'remindEventEmail.html' 
    route: { 
    path: '/event/:_id/remind', 
    data: function(params) { 
     return { 
     event: Events.findOne(params._id); 
     } 
    } 
    } 
}; 

/電子メール/イベントは/実際のルートは次のようになります。_ ID /あなたがメインのデータのクエリまたはネストの別のスタイルを使用する場合があり、

は、データパターンを何卒ご了承下さい思い出させます文脈

関連する問題