tmeasday / meteor-router

MIT License
366 stars 76 forks source link

Router causing Meteor server to restart over and over #128

Closed withlime closed 10 years ago

withlime commented 11 years ago

I am working on a project using Meteor (Meteorite) and just recently have run into the issue of the Meteor server restarting over and over. I have to kill it on the port to get it to stop (CTRL + C is not working). After some investigation it only happens when I have the router package added to the project; as soon as I remove it the Meteor Server seems to run fine. Can anyone shed some light? Thanks!

BhimAle commented 11 years ago

Hey withlime I am too using the package router in meteorite and it works fine for me.. can you tell me which version of meteor , meteorite and node are you using. Does it shows any errors or message in the server before it restart ?

withlime commented 11 years ago

BhimAle - Version wise, I am running: Meteorite version 0.6.11 Release 0.6.5 For node - v0.8.11

No errors occur, just when I run mrt in my directory I get: Meteor server running on: http://localhost:3000/ Meteor server restarted (x120) <-- this number just keeps climbing until I kill it.

withlime commented 11 years ago

As soon as I remove the router package from mrt it runs fine. And its not just the one project. I started reading Discover Meteor and was following along in that book and as soon as I got to the router package chapter I got the same results with the Microscope project.

BhimAle commented 11 years ago

I am using mrt version- 0.6.9 meteor- 0.6.4 node - 0.10.16 and It works fine for me @withlime why don't you degrade your meteor version and give a try

withlime commented 11 years ago

@BhimAle downgrading Meteor to 0.6.4.1 errors out when trying to run because of the packages. "No dependency info in bundle....." It can't find the package.js file.

BhimAle commented 11 years ago

@withlime check this, it might help you https://github.com/meteor/meteor/issues/948

Tarang commented 10 years ago

I have managed to replicate this.

A fresh Meteor 0.7.0.1 project with Meteor router has this issue due to the page-js-ie-support package, which is a dependency.

I'm not too sure why though there aren't any errors thrown.

Tarang commented 10 years ago

I'm not exactly sure what causes this but it seems to be caused by some kind of bad package installation.

The way to fix it is to reinstall the package from absolute scratch. This means deleting it in your ~/.meteorite/packages/page-js-ie-support directory then running mrt update to reinstall it.