2016-04-07 23 views
0

Sadece 1.3 ile güncelleme üzerinde çalışıyorum ve bu hatayı nasıl ele alacağımı bilmiyorum. Dosya yükleme sırasının 1.3'te değiştirilmesi ile ilgili olabileceğini düşünüyorum. Herhangi bir fikir? Teşekkürler! E-posta önizleme gerekmiyorsaMeteor 1.3 güncellemesi geçişi

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> 

cevap

1

o, o bir yeniden inceleme> 0.7.0 şey

1,3 şey değil

'in ayarlanması

sorununuzu çözebilir.

aksi takdirde göre Akış Router

ile kullanmak nasıl birlikte takip:

artık şablon nesne üzerinde bir güzergah alanını sağlamanız gerekmektedir

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 
    }; 
} 
} 

yani sizin

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

haline gelmelidir

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

/e-postalar/etkinlik/gerçek rota sonra olacaktır: _ id/ana verilerin sorgu veya yuvalama başka bir tarzı olabilir,

veri düzen fark lütfen hatırlatmak içerik

İlgili konular