Fix waitPromise updating in [[error]], package.json, helpers import code