Closed kenshinman closed 6 years ago
Hello @kenshinman ,
SpiderableCacheCollection
collection)jazeee-meteor-spiderable
you are on?Hey! Really excited I got a response. Thanks
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;
}
}
});
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
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
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).
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
@kenshinman weird.
/
root?Hi @dr-dimitru . It (the prerender service) works now. All I had to do was Enable ES6. Thanks so much for all the help
@kenshinman great, I'm glad it helped
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