OfficeDev / Office-Addin-Scripts

A set of scripts and packages that are consumed in Office add-ins projects.
MIT License
160 stars 100 forks source link

"Unable to start the dev server" on Ubuntu WSL #852

Closed videate-carlos closed 6 months ago

videate-carlos commented 7 months ago

Expected behavior

npm run start:web [URL] starts the dev-server, opens the Document and loads add-in

Current behavior

npm run start:web [URL] fails:

$ npm run start:web https://onedrive.live.com/personal/...
> office-addin-taskpane-react-js@0.0.1 start:web
> office-addin-debugging start manifest.xml web https://onedrive.live.com/personal/...

Debugging is being started...
App type: web
Starting the dev server... (webpack serve --mode development)
Unable to start the dev server. Error: The dev server is not running on port 3000.
Sideloading the Office Add-in...
Error: Unable to start debugging.
Error: Unable to sideload the Office Add-in.
Error: The Office Add-in manifest does not support Excel.

Steps to Reproduce

  1. yo office --projectType react --name my-addin --host word --js
  2. cd my-addin
  3. npm run start:web [URL]

Context

I initially ran into this issue when trying to tun a project repo which uses office-sddin-scripts, specifically it has a script that runs office-addin-debugging start office-addin/manifest.xml --dev-server='npm run start:office:server' web --document. This works fine on Linux and macOS but this time I was trying to run it on Ubuntu under WSL. I recreated a new project using the yo generator and it was still not working.

Failure Logs

Please include any relevant log snippets, screenshots or code samples here.

> office-addin-taskpane-react-js@0.0.1 start:web
> office-addin-debugging start manifest.xml web https://onedrive.live.com/personal/...

Debugging is being started...
App type: web
Starting the dev server... (webpack serve --mode development)
Unable to start the dev server. Error: The dev server is not running on port 3000.
Sideloading the Office Add-in...
Error: Unable to start debugging.
Error: Unable to sideload the Office Add-in.
Error: The Office Add-in manifest does not support Excel.
zhngx1 commented 7 months ago

Is the issue only when you are trying to run the Office Web? The issue is also only happening on Ubuntu, not other platforms? From the log it looks like something is running on port 3000, can you try to look what process is running on port 3000?

zhngx1 commented 6 months ago

Please reopen the issue if you still run into this issue.