Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem deploying on android device #230

Open
tnedich opened this issue Apr 6, 2015 · 0 comments
Open

Problem deploying on android device #230

tnedich opened this issue Apr 6, 2015 · 0 comments
Labels

Comments

@tnedich
Copy link

tnedich commented Apr 6, 2015

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.

@gadicc gadicc added the mobile label May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants