Iron-router jquery dependency

It looks like the recent update to Meteor broke the jquery dependencies. I see a bunch of pull requests on the Github that haven’t been reviewed or merged so is it worth fixing this and creating a new package or has anyone done that already?

Edit I created a brand new clean Meteor app and used the --allow-incompatible-update which broke everything previously however now allows the router to run. It does downgrade the Meteor jQuery dependency to 1.11.11 so there is probably going ot be an underlying problem somewhere.

I know there is flow-router but with some server side routes and the route level subscriptions, i found Iron to be much better unless I am missing something.

$ meteor add iron:router
 => Errors while adding packages:             
While selecting package versions:
error: Potentially incompatible change required to top-level dependency: jquery
1.11.11, was 3.0.0.
Constraints on package "jquery":
* jquery@1.11.9 || 3.0.0 <- blaze 2.3.4 <- blaze-html-templates 1.1.2
* jquery@1.0.0 <- iron:dynamic-template 1.0.12 <- iron:controller 1.0.12 <-
iron:router 1.1.2
* jquery@1.0.0 <- iron:location 1.0.11 <- iron:router 1.1.2

Any feedback here? I get this same error. Is there a way to fix this?

If you use the allow incompatible flag when doing the install, it will downgrade your jQuery and work normally. I have not seen any issues with it but I think overall, will need to dig into the iron library and see what features if anything was on 1.0 that isn’t on the recent versions of jQuery.

1 Like

Hey @nonstopdev and @thespacecowboys45,

These two thread should help solve your issue: