Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excel not launching with start:desktop #747

Open
mcshaz opened this issue Feb 13, 2023 · 0 comments
Open

Excel not launching with start:desktop #747

mcshaz opened this issue Feb 13, 2023 · 0 comments

Comments

@mcshaz
Copy link

mcshaz commented Feb 13, 2023

Prerequisites

  • [✓ ] I am running the latest versions (see the Context heading below)
  • [ ✓] I checked the documentation and found no answer
  • [✓ ] I checked to make sure that this issue has not already been filed

Expected behavior

When executing npm run start:desktop, Excel should launch with the add-in side loaded.

This had been happening before upgrading from windows 10 to windows 11, although I am not 100% sure this was the only thing to have changed on my system.

Current behavior

Excel does not launch. This does not appear to be a question of window visability - Excel is not visible in task manager etc. and includes more than sufficient time for Excel to load.

It looks like a window is trying to display something early in the process, but the window flickers so briefly I cannot get a screenshot or have any idea if it has content. Otherwise the webpack window etc. all seem to load normally. There is no useful information I can assertain in the output as reproduced below.

Steps to Reproduce

  1. Create project with yo office --projectType excel-functions-shared --name "my-excel-shared-functions" --host excel --ts
  2. typing npm run start:desktop into the powershell terminal in visual studio code

Context

  • Node v18.14.0
  • NPM 8.5.2
  • Yeoman version 4.3.1 and latest yo office generator
  • office-addin-debugging 4.6.7
  • Windows 11 22621.1105 64-bit
  • Excel (Version 2301 Build 16.0.16026.20002) 64-bit

Failure Logs

The powershell terminal displays:

> npm run start:desktop
Debugging is being started...
App type: desktop
Enabled debugging for add-in 1d72941c-78a5-40d6-89df-dd346d330266.
Starting the dev server... (webpack serve --mode development)
Sideloading the Office Add-in...
Launching excel via C:\Users\[...etc...]\AppData\Local\Temp\Excel add-in 1d72941c-78a5-40d6-89df-dd346d330266.xlsx
Debugging started.
>

and using npx office-addin-dev-settings runtime-log --enable the log file is empty

the webpack terminal is completely unremarkable:

You already have trusted access to https://localhost.
Certificate: C:\Users\[...etc...]\.office-addin-dev-certs\localhost.crt
Key: C:\Users\[...etc...]\.office-addin-dev-certs\localhost.key
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: https://localhost:3000/
<i> [webpack-dev-server] On Your Network (IPv4): https://192.168.235.11:3000/
<i> [webpack-dev-server] Content not from webpack is served from 'C:\Users\[...etc...]\dist' directory
assets by path assets/*.png 26.9 KiB
  asset assets/logo-filled.png 11.6 KiB [emitted] [from: assets/logo-filled.png] (auxiliary name: taskpane)
  asset assets/icon-80.png 4.72 KiB [emitted] [from: assets/icon-80.png] [copied]
  asset assets/icon-128.png 4.58 KiB [emitted] [from: assets/icon-128.png] [copied]
  asset assets/icon-32.png 2.33 KiB [emitted] [from: assets/icon-32.png] [copied]
  + 2 assets
assets by path *.js 1.73 MiB
  asset polyfill.js 1.07 MiB [emitted] (name: polyfill) 1 related asset
  asset taskpane.js 230 KiB [emitted] (name: taskpane) 1 related asset
  asset functions.js 221 KiB [emitted] (name: functions) 1 related asset
  asset commands.js 220 KiB [emitted] (name: commands) 1 related asset
asset manifest.xml 5.01 KiB [emitted] [from: manifest.xml] [copied]
asset taskpane.html 2.61 KiB [emitted]
asset functions.json 1.79 KiB [emitted]
asset 1fda685b81e1123773f6.css 1.48 KiB [emitted] [immutable] [from: src/taskpane/taskpane.css] (auxiliary name: taskpane)
runtime modules 110 KiB 48 modules
modules by path ./node_modules/core-js/ 528 KiB 506 modules
modules by path ./node_modules/webpack-dev-server/client/ 56.8 KiB 12 modules
modules by path ./src/ 10.8 KiB (javascript) 1.48 KiB (asset)
  modules by path ./src/taskpane/ 7.93 KiB (javascript) 1.48 KiB (asset) 3 modules
  ./src/commands/commands.ts 1.04 KiB [built] [code generated]
  ./src/functions/functions.ts 1.87 KiB [built] [code generated]
modules by path ./node_modules/webpack/hot/*.js 4.59 KiB
  ./node_modules/webpack/hot/dev-server.js 1.88 KiB [built] [code generated]
  + 3 modules
modules by path ./node_modules/html-entities/lib/*.js 81.3 KiB
  ./node_modules/html-entities/lib/index.js 7.74 KiB [built] [code generated]
  + 3 modules
+ 5 modules
webpack 5.75.0 compiled successfully in 5997 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant