Removed the auto-generate in router, and made it error if the js is not compiled