throw a exception if module has not been registered
add dependencies of mvc