When I use 'yo office' to generate an Office Add-In Task Pane no matter which Office App I choose, an extraneous line declaring that excel is the app to use to debug is added to the config section of package.json. This is what I see when I choose to create an Office Add-In for Word:
Debugging is being started...
App type: desktop
The dev server is already running on port 3000.
Sideloading the Office Add-in...
Error: Unable to start debugging.
office-addin-debugging: Unable to sideload the Office Add-in.
office-addin-dev-settings: The Office Add-in manifest does not support Excel.
Operating System: macOS Catalina (10.15.7)
Node version: v14.16.0
Office version: v16.48
Tool (yo) version: 3.1.1
By removing the extraneous line from package.json, the problem is solved.
When I use 'yo office' to generate an Office Add-In Task Pane no matter which Office App I choose, an extraneous line declaring that excel is the app to use to debug is added to the config section of package.json. This is what I see when I choose to create an Office Add-In for Word:
"config": { "app_to_debug": "excel", "app_type_to_debug": "desktop", "dev_server_port": 3000, "app-to-debug": "word" },
Because of this, when you run 'npm start' you see this output:
Debugging is being started... App type: desktop The dev server is already running on port 3000. Sideloading the Office Add-in... Error: Unable to start debugging. office-addin-debugging: Unable to sideload the Office Add-in. office-addin-dev-settings: The Office Add-in manifest does not support Excel.
By removing the extraneous line from package.json, the problem is solved.