OfficeJs `Cannot read property 'Version' of null` Zone.js error












0














We are developing an OfficeJs add-in for use in the Outlook Web App (OWA) using Angular (V6.x atm.)
Angular depends on the zone.js Javascript library which we include in our polyfills.ts file.



It seems that OfficeJs uses a method (or álso depends on zone.js) that is causing the following error (which we comfortably have been ignoring for months together with the many other warnings and errors the OWA generates):




polyfills.js:4888 Uncaught TypeError: Cannot read property 'Version' of null
at Object.callback (outlook-web-16.01.js:9)
at rt (outlook-web-16.01.js:9)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:5117)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:4884)
at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (polyfills.js:5192)
at invokeTask (polyfills.js:6236)
at globalZoneAwareCallback (polyfills.js:6262)




in outlook-web-16.01.js:9, this is the line where this error originates:



OSF.DDA.WAC.Delegate.version=i.Version;r=i.Error



I was not able to reverse engineer what OfficeJs is trying to do, but it seems that the method where this goes wrong is located on this line:



`https://github.com/OfficeDev/office-js/blob/release/dist/office.debug.js#L1594



This happens deterministically when we use the Office.ui.messageParent method to send stringified JSON data from a dialog back to the parent add-in.



Unfortunately the stack trace does not give us anything more to investigate:



enter image description here










share|improve this question
























  • Can you pleaes help me out? stackoverflow.com/questions/53425063/…
    – Adrita Sharma
    Nov 22 '18 at 6:37










  • But does it impact your application in any way?
    – Brian Clink
    Nov 22 '18 at 14:47










  • @BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
    – Michael Trouw
    Nov 23 '18 at 10:53
















0














We are developing an OfficeJs add-in for use in the Outlook Web App (OWA) using Angular (V6.x atm.)
Angular depends on the zone.js Javascript library which we include in our polyfills.ts file.



It seems that OfficeJs uses a method (or álso depends on zone.js) that is causing the following error (which we comfortably have been ignoring for months together with the many other warnings and errors the OWA generates):




polyfills.js:4888 Uncaught TypeError: Cannot read property 'Version' of null
at Object.callback (outlook-web-16.01.js:9)
at rt (outlook-web-16.01.js:9)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:5117)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:4884)
at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (polyfills.js:5192)
at invokeTask (polyfills.js:6236)
at globalZoneAwareCallback (polyfills.js:6262)




in outlook-web-16.01.js:9, this is the line where this error originates:



OSF.DDA.WAC.Delegate.version=i.Version;r=i.Error



I was not able to reverse engineer what OfficeJs is trying to do, but it seems that the method where this goes wrong is located on this line:



`https://github.com/OfficeDev/office-js/blob/release/dist/office.debug.js#L1594



This happens deterministically when we use the Office.ui.messageParent method to send stringified JSON data from a dialog back to the parent add-in.



Unfortunately the stack trace does not give us anything more to investigate:



enter image description here










share|improve this question
























  • Can you pleaes help me out? stackoverflow.com/questions/53425063/…
    – Adrita Sharma
    Nov 22 '18 at 6:37










  • But does it impact your application in any way?
    – Brian Clink
    Nov 22 '18 at 14:47










  • @BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
    – Michael Trouw
    Nov 23 '18 at 10:53














0












0








0


2





We are developing an OfficeJs add-in for use in the Outlook Web App (OWA) using Angular (V6.x atm.)
Angular depends on the zone.js Javascript library which we include in our polyfills.ts file.



It seems that OfficeJs uses a method (or álso depends on zone.js) that is causing the following error (which we comfortably have been ignoring for months together with the many other warnings and errors the OWA generates):




polyfills.js:4888 Uncaught TypeError: Cannot read property 'Version' of null
at Object.callback (outlook-web-16.01.js:9)
at rt (outlook-web-16.01.js:9)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:5117)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:4884)
at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (polyfills.js:5192)
at invokeTask (polyfills.js:6236)
at globalZoneAwareCallback (polyfills.js:6262)




in outlook-web-16.01.js:9, this is the line where this error originates:



OSF.DDA.WAC.Delegate.version=i.Version;r=i.Error



I was not able to reverse engineer what OfficeJs is trying to do, but it seems that the method where this goes wrong is located on this line:



`https://github.com/OfficeDev/office-js/blob/release/dist/office.debug.js#L1594



This happens deterministically when we use the Office.ui.messageParent method to send stringified JSON data from a dialog back to the parent add-in.



Unfortunately the stack trace does not give us anything more to investigate:



enter image description here










share|improve this question















We are developing an OfficeJs add-in for use in the Outlook Web App (OWA) using Angular (V6.x atm.)
Angular depends on the zone.js Javascript library which we include in our polyfills.ts file.



It seems that OfficeJs uses a method (or álso depends on zone.js) that is causing the following error (which we comfortably have been ignoring for months together with the many other warnings and errors the OWA generates):




polyfills.js:4888 Uncaught TypeError: Cannot read property 'Version' of null
at Object.callback (outlook-web-16.01.js:9)
at rt (outlook-web-16.01.js:9)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (polyfills.js:5117)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (polyfills.js:4884)
at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (polyfills.js:5192)
at invokeTask (polyfills.js:6236)
at globalZoneAwareCallback (polyfills.js:6262)




in outlook-web-16.01.js:9, this is the line where this error originates:



OSF.DDA.WAC.Delegate.version=i.Version;r=i.Error



I was not able to reverse engineer what OfficeJs is trying to do, but it seems that the method where this goes wrong is located on this line:



`https://github.com/OfficeDev/office-js/blob/release/dist/office.debug.js#L1594



This happens deterministically when we use the Office.ui.messageParent method to send stringified JSON data from a dialog back to the parent add-in.



Unfortunately the stack trace does not give us anything more to investigate:



enter image description here







office-js outlook-web-addins






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 0:35









Kim Brandl

10.1k21014




10.1k21014










asked Nov 21 '18 at 14:26









Michael Trouw

2,84232034




2,84232034












  • Can you pleaes help me out? stackoverflow.com/questions/53425063/…
    – Adrita Sharma
    Nov 22 '18 at 6:37










  • But does it impact your application in any way?
    – Brian Clink
    Nov 22 '18 at 14:47










  • @BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
    – Michael Trouw
    Nov 23 '18 at 10:53


















  • Can you pleaes help me out? stackoverflow.com/questions/53425063/…
    – Adrita Sharma
    Nov 22 '18 at 6:37










  • But does it impact your application in any way?
    – Brian Clink
    Nov 22 '18 at 14:47










  • @BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
    – Michael Trouw
    Nov 23 '18 at 10:53
















Can you pleaes help me out? stackoverflow.com/questions/53425063/…
– Adrita Sharma
Nov 22 '18 at 6:37




Can you pleaes help me out? stackoverflow.com/questions/53425063/…
– Adrita Sharma
Nov 22 '18 at 6:37












But does it impact your application in any way?
– Brian Clink
Nov 22 '18 at 14:47




But does it impact your application in any way?
– Brian Clink
Nov 22 '18 at 14:47












@BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
– Michael Trouw
Nov 23 '18 at 10:53




@BrianClink Well, no, that's why we have been ignoring it. But it's annoying, distracting and I want to know how to solve it, if at all possible.
– Michael Trouw
Nov 23 '18 at 10:53












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414249%2fofficejs-cannot-read-property-version-of-null-zone-js-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53414249%2fofficejs-cannot-read-property-version-of-null-zone-js-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python