veliovgroup / jazeee-meteor-spiderable

Fork of Meteor Spiderable with longer timeout, caching, better server handling
https://atmospherejs.com/jazeee/spiderable-longer-timeout
33 stars 9 forks source link

Showing Iron:Router's message on my homepage #53

Closed kenshinman closed 6 years ago

kenshinman commented 6 years ago

Hi, thanks for this package. I just tried it and it's showing me Iron:Router's message on my homepage.

in the debug console, o get this Spiderable successfully completed [from cache] for url: [200] http://localhost:3000/ meaning it was successful. How can I solve this?

Thanks

dr-dimitru commented 6 years ago

Hello @kenshinman ,

  1. Start with purging Spiderable cache (removing all records from SpiderableCacheCollection collection)
  2. Does your app works directly? (without involving Spiderable)
  3. What version of Meteor and jazeee-meteor-spiderable you are on?
kenshinman commented 6 years ago

Hey! Really excited I got a response. Thanks

  1. Done
  2. Yes. When I run curl http;//localhost:3000/ all looks fine but when i run curl http://localhost:3000/?_escaped_fragment_=, i get the iron-router default page.

I'm on Meteor@1.3.5.1 and jazeee:spiderable-longer-timeout@1.2.13

here is how I wrote the route

   Router.route("/", {
  name: "home",
  waitOn: function() {
    return [
      Meteor.subscribe("sub1"),
      Meteor.subscribe("sub2"),
    ];
  },
  layoutTemplate: "homeLayout",
  template: "home",
  onAfterAction: function() {
    if (this.ready()) {
      Meteor.isReadyForSpiderable = true;
    }
  }
});
kenshinman commented 6 years ago

Hi @dr-dimitru , Just created a fresh project now and added the package and it works perfectly I guess the cause of the clash is iron router. my current version is 1.0.13 Issue still persists on my app though. Thanks

Here's the link to the project Link

kenshinman commented 6 years ago

I think the issue is with iron router as prerender.io now gives the same issue. My routes are quite much but may need to migrate to flow router

dr-dimitru commented 6 years ago

You're welcome. I bet you have ES6/7 syntax used in NPM (NPM packages written in ES6/7 won't be transpiled to ES5) and prerender.io nor spiderable package has no ES6/7 syntax support. Try prerendering service with ES6/7 support, at least to test your code (free tier with up to 240 free renders).

kenshinman commented 6 years ago

thanks @dr-dimitru for the help so far. I really appreciate

I have tried this one too the prerendering service too and I have the same iron router splash screen

dr-dimitru commented 6 years ago

@kenshinman weird.

  1. Do you have any errors on server or client?
  2. Issue appears on all pages or only / root?
kenshinman commented 6 years ago

Hi @dr-dimitru . It (the prerender service) works now. All I had to do was Enable ES6. Thanks so much for all the help

dr-dimitru commented 6 years ago

@kenshinman great, I'm glad it helped