{"action":"created","issue":{"url":"https://api.github.com/repos/OfficeDev/office-js/issues/100","repository_url":"https://api.github.com/repos/OfficeDev/office-js","labels_url":"https://api.github.com/repos/OfficeDev/office-js/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/office-js/issues/100/comments","events_url":"https://api.github.com/repos/OfficeDev/office-js/issues/100/events","html_url":"https://github.com/OfficeDev/office-js/issues/100","id":316131805,"number":100,"title":"“Word object is undefined” error when executing Word.run function","user":{"login":"RoyalMugu","id":38550182,"avatar_url":"https://avatars3.githubusercontent.com/u/38550182?v=4","gravatar_id":"","url":"https://api.github.com/users/RoyalMugu","html_url":"https://github.com/RoyalMugu","followers_url":"https://api.github.com/users/RoyalMugu/followers","following_url":"https://api.github.com/users/RoyalMugu/following{/other_user}","gists_url":"https://api.github.com/users/RoyalMugu/gists{/gist_id}","starred_url":"https://api.github.com/users/RoyalMugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoyalMugu/subscriptions","organizations_url":"https://api.github.com/users/RoyalMugu/orgs","repos_url":"https://api.github.com/users/RoyalMugu/repos","events_url":"https://api.github.com/users/RoyalMugu/events{/privacy}","received_events_url":"https://api.github.com/users/RoyalMugu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-20T05:24:40Z","updated_at":"2018-04-20T06:41:09Z","closed_at":null,"author_association":"NONE","body":"We have developed a Word javascript addin which makes use of Word Api 1.2. We are loading this addin in Office 2016 MSI.\r\n \r\nThe web application of the addin is hosted at their internal server, we can access it through the intranet. The Manifest is kept in a Shared drive. Our intention is to make this addin work in an environment which doesn’t have an internet connection. \r\n \r\nWhenever the addin tries to execute the Word.run() function, we get “Word object is undefined” error in the internet explorer console. This issue occurs only when there is no internet connection. When the machine is connected to internet, they don’t see this issue. \r\n \r\nLooking at the network trace during this API call, we see word -15.01.js when they run it without internet and word -win32-16.00.js when they run it with internet connection. we have kept all the .js files and packages in the same internal server where we have hosted their web application. \r\n \r\nI know loading a web addin without internet connection is a bad idea . But we are a banking company and we don’t want our machines to be connected to the internet. \r\n\r\n\r\n## Expected Behavior\r\nThe addin should work without internet connection\r\n\r\n## Current Behavior\r\nWe are getting “Word object is undefined” error when executing Word.run function\r\nLooking at the network trace during this API call, we see word -15.01.js when they run it without internet and word -win32-16.00.js when they run it with internet connection. we have kept all the .js files and packages in the same internal server where we have hosted their web application.\r\n\r\n## Steps to Reproduce, or Live Example\r\n\r\n<!--- If not possible, or if the snippet requires extra explanation, provide repro steps below: -->\r\n Word.run(function (context) {\r\n          \r\n          return context.sync();\r\n        })\r\n        .catch(errorHandler);\r\n\r\n## Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\nUnable to deploy this addin to the word client. The addin has to work without internet connection\r\n\r\n\r\n## Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Platform [PC desktop, Mac, iOS, Office Online]: Office 2016 MSI \r\n* Host [Excel, Word, PowerPoint, etc.]: Word 2016\r\n* Office version number: 16.0.4549.1000\r\n* Operating System: Windows 10\r\n* Browser (if using Office Online): NA\r\n\r\n## Useful logs\r\n<!--- Please include any of the following logs that may help us debugging your issue -->\r\n- [ ] Console errors\r\n- [ ] Screenshots\r\n- [ ] Test file (if only happens on a particular file)"},"comment":{"url":"https://api.github.com/repos/OfficeDev/office-js/issues/comments/382995969","html_url":"https://github.com/OfficeDev/office-js/issues/100#issuecomment-382995969","issue_url":"https://api.github.com/repos/OfficeDev/office-js/issues/100","id":382995969,"user":{"login":"RoyalMugu","id":38550182,"avatar_url":"https://avatars3.githubusercontent.com/u/38550182?v=4","gravatar_id":"","url":"https://api.github.com/users/RoyalMugu","html_url":"https://github.com/RoyalMugu","followers_url":"https://api.github.com/users/RoyalMugu/followers","following_url":"https://api.github.com/users/RoyalMugu/following{/other_user}","gists_url":"https://api.github.com/users/RoyalMugu/gists{/gist_id}","starred_url":"https://api.github.com/users/RoyalMugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoyalMugu/subscriptions","organizations_url":"https://api.github.com/users/RoyalMugu/orgs","repos_url":"https://api.github.com/users/RoyalMugu/repos","events_url":"https://api.github.com/users/RoyalMugu/events{/privacy}","received_events_url":"https://api.github.com/users/RoyalMugu/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T06:41:09Z","updated_at":"2018-04-20T06:41:09Z","author_association":"NONE","body":"According to this documentation, it says MSI only supports Word api1.1 but it appears that ap1.2 is also supported. I am surprised.\r\nhttps://dev.office.com/reference/add-ins/requirement-sets/word-api-requirement-sets?product=word\r\n\r\nWe got the Office.js files through Nuget packages. These packages are kept in a file share and loaded from that location.\r\nhttps://www.nuget.org/packages/Microsoft.Office.js/ "}}
{"actor":{"display_login":"RoyalMugu"}}