Reaction-example-plugin not working


#1

With the current release version of Reaction Commerce(v 1.5.6), the reaction-example-plugin seems not working, after place it in imports/plugins/custom, the home page will show nothing but:

Error messages from console:

Exception from Tracker recompute function:
meteor.js?hash=6d285d84547b3dad9717a7c89c664b61b45ea3d8:942 Error: No such template: CoreNavigationBar
    at blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:3212
    at Blaze.View.<anonymous> (spacebars.js?hash=ebf9381e7fc625d41acb0df14995b7614360858a:68)
    at blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:1934
    at Function.Template._withTemplateInstanceFunc (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:3744)
    at blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:1932
    at Object.Blaze._withCurrentView (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:2271)
    at viewAutorun (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:1931)
    at Tracker.Computation._compute (tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:339)
    at new Tracker.Computation (tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:229)
    at Object.Tracker.autorun (tracker.js?hash=997515fa2d5b0530ba07741da556c4b36963ef3b:613)
meteor.js?hash=6d285d84547b3dad9717a7c89c664b61b45ea3d8:942 Exception from Tracker recompute function:
meteor.js?hash=6d285d84547b3dad9717a7c89c664b61b45ea3d8:942 TypeError: Cannot read property 'set' of undefined
    at BlazeComponent.componentWillReceiveProps (blaze-react-component-client.js:52)
    at modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:108494
    at measureLifeCyclePerf (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:107959)
    at ReactCompositeComponentWrapper.updateComponent (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:108493)
    at ReactCompositeComponentWrapper.receiveComponent (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:108430)
    at Object.receiveComponent (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:100981)
    at Object.updateChildren (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:107693)
    at ReactDOMComponent._reconcilerUpdateChildren (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:107227)
    at ReactDOMComponent._updateChildren (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:107331)
    at ReactDOMComponent.updateChildren (modules.js?hash=6d40a6bbfdd0033a4dc1cf90208bea73289767c2:107318)

Please help, thanks!


#2

Hello,
we’re in the progress of refactoring that plugin to not use Blaze templates any longer. But to give you a quick start with the problems you encountered, you can pull from this fork, which specifically addresses your observations.

https://github.com/prinzdezibel/reaction-example-plugin/tree/michael-fix-issue-example-plugin-not-working

-Michael


#3

Hi prinzdezibel,
I’ve tried your fix and it works, so now I’m able to do more research based on the example plugin, thanks a lot!
Hope your refactoring finish soon, it must be helpful for us beginners of Reaction.
Thanks again for your help!


#4

The link is broken, would you please provide the new link? Thanks in advance.


#5

The changes are still in review process before they will be available in master.
If you’ve need them earlier, you may merge in these PRs:

Repo reactioncommerce/reaction: https://github.com/reactioncommerce/reaction/pull/3257
Repo reactioncommerce/reaction-example-plugin: https://github.com/reactioncommerce/reaction-example-plugin/pull/22