but cannot `TypeError: Object prototype may only be an Object or null: undefined`