OfficeDev / OfficeDev/Office-Addin-Scripts
Excel not launching with start:desktop
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 194
- Forks
- 117
- Avg merge
- 1d 32m
- Merged PRs (30d)
- 2
Description
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
- Create project with
yo office --projectType excel-functions-shared --name "my-excel-shared-functions" --host excel --ts - typing
npm run start:desktopinto 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing npm run start:desktop with the reported Yeoman Excel project and Windows 11 versions. Review the office-addin-debugging launch output and runtime log alongside the successful webpack output; done means Excel launches visibly and the add-in is sideloaded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, powershell, typescript, webpack
- Domain
- cli, desktop-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100