You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

调试基于事件的Outlook加载项遇TypeError:桌面端报错,OWA正常

问题:Outlook桌面客户端调试事件加载项时出现TypeError错误
  • Windows 10环境下,通过OWA(Edge Chromium或Chrome浏览器)调试基于事件的Outlook加载项时,事件处理完全符合预期,无异常。
  • 但使用Outlook 365(Microsoft 365 MSO 版本2207 Build 16.0.15427.20182 64位),并通过VS Code(1.70.2)附加调试同一代码时,触发以下错误:
Exception has occurred: TypeError: Office.actions._association.mappings[r.toUpperCase(...)] is not a function
  at C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:362564
    at C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:359564
    at Object.next (C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:359669)
    at C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:358581
    at f (foundation.win32.bundle:59:206)
    at y (foundation.win32.bundle:59:1587)
    at new c (foundation.win32.bundle:59:485)
    at r (C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:358355)
    at S (C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:362376)
    at a (C:\Program Files\Microsoft Office\root\Office16\olk-launchevent-host.win32.bundle:15:337430)

附带Office JavaScript API库的相关注释:

/*
 * Office JavaScript API library
 *
 * Copyright (c) Microsoft Corporation.  All rights reserved.
 *
 * Your use of this file is governed by the Microsoft Services Agreement http://go.microsoft.com/fwlink/?LinkId=266419.
 *
 * This file also contains the following Promise implementation (with a few small modifications):
 *      * @overview es6-promise - a tiny implementation of Promises/A+.
 *      * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 *      * @license   Licensed under MIT license
 *      *            See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
 *      * @version   2.3.0
 */

VS Code的变量面板显示所有变量值均符合预期,请问问题根源是什么?

内容的提问来源于stack exchange,提问作者Tim H

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.20 21:45:28