OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
670 stars 96 forks source link

Impossible to Open DevTools to Clear Browser Cache in New Outlook Anymore #4056

Closed XENOpz closed 7 months ago

XENOpz commented 8 months ago

Your Environment

Expected behavior

I press F12. Dev Tools appears.

Current behavior

You press F12. Nothing happens.

Steps to reproduce

  1. add config.json to %localappdata%\Microsoft\Olk\ containing the following text: { "edgeDevTools": "enabled" }
  2. Open new Outlook.
  3. Press F12. Nothing.
  4. (as per https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/one-outlook#debug-your-add-in): Sideload project onto the web.
  5. Open cmd with admin rights
  6. run olk.exe --devtools
  7. New Outlook opens. No devtools.

Context

It is impossible to clear browser cache and so every time an update is done to the addin it stops working for QA saying "Error: Failed to start platform. Reason: TypeError: Cannot read properties of undefined (reading 'dotnet.wasm') at Vt (blazor.webassembly.js:1:62226)"

ajays-msft commented 7 months ago

@XENOpz - Can you please try the command from powershell window?

XENOpz commented 7 months ago

@XENOpz - Can you please try the command from powershell window?

I tried that just now. Dev tools did not appear.

ajays-msft commented 7 months ago

@XENOpz - Can you please delete the json file you added and try? That file is not required.

XENOpz commented 7 months ago

@XENOpz - Can you please delete the json file you added and try? That file is not required.

Thank you, getting rid of the config file has made it work.