meteor-famous-views
meteor-famous-views copied to clipboard
Problem deploying on android device
When I try to run my application on android device with meteor run android-device I get this error:
I20150406-22:02:33.583(2) (android:http://meteor.local/packages/meteor.js:914) Exception from Tracker afterFlush function: I20150406-22:02:33.585(2) (android:http://meteor.local/packages/meteor.js:914) TypeError: Illegal constructor I20150406-22:02:33.586(2)? at null.<anonymous> (http://meteor.local/packages/gadicohen_famous-views.js?fd41b1f3a8f00a0dade5ad3140167aabf83e536d:1469:28) I20150406-22:02:33.586(2)? at http://meteor.local/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1778:14 I20150406-22:02:33.586(2)? at Object.Blaze._withCurrentView (http://meteor.local/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:2197:12) I20150406-22:02:33.586(2)? at http://meteor.local/packages/blaze.js?a5c324925e5f6e800a4c618d71caf2848b53bf51:1777:15 I20150406-22:02:33.586(2)? at Object.Tracker._runFlush [as 2] (http://meteor.local/packages/tracker.js?6d0890939291d9780f7e2607ee3af3e7f98a3d9c:501:11) I20150406-22:02:33.586(2)? at onGlobalMessage (http://meteor.local/packages/meteor.js?4dc9757b244a30bdf37a732ac4db4026ce56fb6b:398:23)
Application sometimes starts somtimes don't.
This is my simple code:
index.html
<head>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no">
</head>
<body>
</body>
<template name="layout">
{{#famousContext id="mainCtx"}}
{{#HeaderFooterLayout headerSize="100" footerSize="0"}}
{{#Surface target="header" class="red-bg" translate="[0,0,100]"}}
<div id="header">famous-views iron-router pad</div>
{{/Surface}}
{{#RenderController target="content" transition="opacity"}}
{{>yield}}
{{/RenderController}}
{{/HeaderFooterLayout}}
{{/famousContext}}
</template>
<template name="home">
{{#Surface class="green-bg"}}
<h2>Home Page</h2>
<a href="/page2">Page 2</a>
{{/Surface}}
</template>
<template name="page2">
{{#Surface class="blue-bg"}}
<h2>Page 2</h2>
<a href="/">Home Page</a>
{{/Surface}}
</template>
index.js
Router.configure({
layoutTemplate: 'layout',
});
Router.route('home', { path: '/' });
Router.route('page2');
When I remove {{#famousContext id="mainCtx"}} {{/famousContext}} application starts , It complains and give same error but it starts.