How can I fix this: Uncaught Error: [ensureSignedIn] no signIn route configured
How can I fix this: Uncaught Error: [ensureSignedIn] no signIn route configured
我收到此错误:Uncaught Error: [ensureSignedIn] no signIn route configured!
我在 google 上找不到任何相关信息。
我在 routes.js 的公共代码(服务器和客户端)的底部有这个:
FlowRouter.triggers.enter([AccountsTemplates.ensureSignedIn],
{except: ["templateA", "templateB"]});
关于如何解决这个问题有什么想法吗?我确定您需要更多信息。我应该提供什么来帮助你帮助我?
附加信息:
我在服务器目录中有 AccountsTemplates.configureRoute('signIn');
。对于 'fun',我决定将其添加到 ensureSignedIn 触发器之上,但出现以下错误:
Error: Route already configured!
at [object Object].AccountsTemplates.configureRoute (packages/useraccounts_flow-routing.js:108:11)
那是 'funny',因为如果不添加该行,错误是路由尚未配置。
AccountsTemplates.configure
和 AccountsTemplates.configureRoute
东西需要在 客户端上
Accounts.emailTemplates
内容需要在 服务器 上。
我收到此错误:Uncaught Error: [ensureSignedIn] no signIn route configured!
我在 google 上找不到任何相关信息。
我在 routes.js 的公共代码(服务器和客户端)的底部有这个:
FlowRouter.triggers.enter([AccountsTemplates.ensureSignedIn],
{except: ["templateA", "templateB"]});
关于如何解决这个问题有什么想法吗?我确定您需要更多信息。我应该提供什么来帮助你帮助我?
附加信息:
我在服务器目录中有 AccountsTemplates.configureRoute('signIn');
。对于 'fun',我决定将其添加到 ensureSignedIn 触发器之上,但出现以下错误:
Error: Route already configured!
at [object Object].AccountsTemplates.configureRoute (packages/useraccounts_flow-routing.js:108:11)
那是 'funny',因为如果不添加该行,错误是路由尚未配置。
AccountsTemplates.configure
和 AccountsTemplates.configureRoute
东西需要在 客户端上
Accounts.emailTemplates
内容需要在 服务器 上。