Also catch UndeclaredModule when building nodes