Hi, I have a configure.jsx file (in /both folder) in which I put my configuration of Flow router and specifically on the Accounts.onLogin() hook. It works pretty good (no problem with FlowRouter.current() for example) but shows me an error on the server WHEREAS the code works on this line
let lang = FlowRouter.getParam('lang') ? FlowRouter.getParam('lang') : Meteor.settings.public.lang['main'].id;
it is this error
Exception in onLogin callback: TypeError: Object [object Object] has no method 'getParam'
Did anyone already bump in that issue? is it linked to FlowRouter or Accounts package...or me?
Hi, I have a configure.jsx file (in /both folder) in which I put my configuration of Flow router and specifically on the Accounts.onLogin() hook. It works pretty good (no problem with FlowRouter.current() for example) but shows me an error on the server WHEREAS the code works on this line
let lang = FlowRouter.getParam('lang') ? FlowRouter.getParam('lang') : Meteor.settings.public.lang['main'].id;
it is this error
Did anyone already bump in that issue? is it linked to FlowRouter or Accounts package...or me?
Thanks for your help!