KB4338825-更新后,Word加载项将无法正常工作

时间:2018-08-07 13:27:11

标签: office-js

自KB4338825起,我们在Word OfficeJs-Addin中发现了一些错误。 安装更新后,我们可以在多台计算机上重现此问题。

我们的环境是:

- Windows 10 Enterprise x64 Version 1803 (Build 17134.165)
- Nodejs v8.9.4 LTS
- Office-JS v1.1.3-beta-next.4
- Angular CLI: 1.7.3
- Angular: 5.2.8
- @angular/cli: 1.7.3
- @angular-devkit/build-optimizer: 0.3.2
- @angular-devkit/core: 0.3.2
- @angular-devkit/schematics: 0.3.2
- @ngtools/json-schema: 1.2.0
- @ngtools/webpack: 1.10.2
- @schematics/angular: 0.3.2
- @schematics/package-update: 0.3.2
- typescript-fsa-reducers: 0.4.5
- typescript-fsa: 2.5.0
- typescript: 2.6.2
- webpack: 3.11.0

什么不再起作用?

++运算符不累加:

 let index = 1;
 console.log(index++) //still 1
 console.log(index + 1) //index = 2, ok.

没有引发异常。

Document.open上的GeneralException:

 return Word.run(async context => {
        const doc = context.application.createDocument(myBase64String);
        context.trackedObjects.add(doc);
        context.load(doc);
        doc.load('contentControls/items');

        return context.sync().then(() => {
          return doc;
        });
 });

Visual Studio输出(附加到iexplore-Process):

ERROR GeneralException: GeneralException
     "ERROR"
     {
        [functions]: ,
        __proto__: { },
        code: "GeneralException",
        debugInfo: {
           [functions]: ,
           __proto__: { },
           code: "GeneralException",
           errorLocation: "Document.open",
           message: "GeneralException",
           statement: "v.open();",
           surroundingStatements: [ ],
           Symbol(asyncIterator)_g.gqkogp9vn3b: undefined,
           Symbol(observable)_i.gqkogp9vn3b: undefined,
           Symbol(rxSubscriber)_h.gqkogp9vn3b: undefined
        },
        innerError: null,
        message: "GeneralException",
        name: "OfficeExtension.Error",
        stack: "GeneralException: GeneralException
     at Anonymous function 
 (https://localhost:4200/assets/officejs/word-win32-16.01.js:21:223161)
     at ai 
 (https://localhost:4200/assets/officejs/word-win32-16.01.js:21:268286)
     at ft 
 (https://localhost:4200/assets/officejs/word-win32-16.01.js:21:268373)
     at d 
 (https://localhost:4200/assets/officejs/word-win32-16.01.js:21:268193)
     at c 
 (https://localhost:4200/assets/officejs/word-win32-16.01.js:21:266889)",
        Symbol(asyncIterator)_g.gqkogp9vn3b: undefined,
        Symbol(observable)_i.gqkogp9vn3b: undefined,
        Symbol(rxSubscriber)_h.gqkogp9vn3b: undefined,
        traceMessages: [
           length: 0
        ]
     }

谢谢。

0 个答案:

没有答案