veliovgroup / flow-router

🚦 Carefully extended flow-router for Meteor
https://packosphere.com/ostrio/flow-router-extra
BSD 3-Clause "New" or "Revised" License
202 stars 29 forks source link

Setup Issues - this.render() #45

Closed cdoe closed 6 years ago

cdoe commented 6 years ago

Hello,

I'm working on setting up flow-router for a new project and having real trouble getting this.render() to do anything. No matter what I try, I continue to see Error: '.render()' - Requires 'blaze' and 'templating', or 'blaze-html-templates' packages to be installed and can't get anything to show up on screen.

To try and troubleshoot most clearly, a recent one of my experiments went like: meteor create test --full cd test meteor remove kadira:flow-router meteor add ostrio:flow-router-extra Then in imports > startup > clients > routes.js, I adjusted the import statement and changed BlazeLayout.render() to this.render()

Meteor --full mode starts with blaze-html-templates included, so I expected everything to work, but I can't get rid of this error or get anything to render. I've tried adding/removing every combination of those 3 packages imaginable.

Thanks in advance for any insight into what will likely turn out to be a very trivial problem ;)

dr-dimitru commented 6 years ago

Hello @cdoe ,

Make sure

blaze
templating
blaze-html-templates

Are placed above ostrio:flow-router-extra in .meteor/packages file, see https://github.com/VeliovGroup/flow-router/issues/43 for more info. PR https://github.com/VeliovGroup/flow-router/pull/44 will solve this issue

dr-dimitru commented 6 years ago

@cdoe please update to the latest release, this issue should be solved now - v3.4.6

dr-dimitru commented 6 years ago

@cdoe please update this thread with your results. Is the latest update solved your issue?

cdoe commented 6 years ago

The update seemed to fix all my problems. Kudos for the super quick reply, @dr-dimitru! Super helpful!

From what I can tell, it doesn't matter how those packages are arranged. I currently have just blaze-html-templates and ostrio:flow-router-extra installed. Changing their order in .meteor/packages doesn't break anything. And in this case, it doesn't seem necessary to install blaze or templating, right?

Thanks again!

dr-dimitru commented 6 years ago

My suggestion was related to v3.4.5 (previous release). Since I've released an update (v3.4.6), order of packages at .meteor/packages file no longer matter.

But you're still required blaze-html-templates or blaze and templating, e.g.:

'blaze-html-templates' || ('blaze' && 'templating');

Let me know if this info was helpful.

cdoe commented 6 years ago

Yes. Very helpful. It is a bit more clear stated that way. Thanks again!

dr-dimitru commented 6 years ago

Please, support this project by: