I’m still using iron-router because I don’t have the time to learn the more updated flow-router, although I know the package is no longer maintained, and the official GitHub repository also stops at v1.1.2. But today as I just tried to update to Meteor v2.5.3, the iron-router package and its dependencies got some updates, too:
iron:controller upgraded from 1.0.12 to 1.1.0
iron:dynamic-template upgraded from 1.0.12 to 1.1.0
iron:location upgraded from 1.0.11 to 1.1.0
iron:router upgraded from 1.1.2 to 1.2.0
Unfortunately, the updates totally broke my application as there’s a bug in packages/iron_router.js:
ReferenceError: UI is not defined at packages/iron_router.js:1118:1 at packages/iron_router.js:1259:4 at packages/iron_router.js:1463:3 at /home/shaferain/xxxxxxx/.meteor/local/build/programs/server/boot.js:401:38 at Array.forEach (<anonymous>) at /home/shaferain/xxxxxxx/.meteor/local/build/programs/server/boot.js:226:21 at /home/shaferain/xxxxxxx/.meteor/local/build/programs/server/boot.js:464:7 at Function.run (/home/shaferain/xxxxxxx/.meteor/local/build/programs/server/profile.js:280:14) at /home/shaferain/xxxxxxxx/.meteor/local/build/programs/server/boot.js:463:13 Exited with code: 1 Your application is crashing. Waiting for file change.
After checking the source codes, I’m pretty sure that this line below is missing in the mysterious updates:
var UI = Package.blaze.UI;
I have downgraded to the original versions, but I guess my question is who’s maintaining the iron-router package now, and where should this bug be reported to…?