question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start the dev server

See original GitHub issue

I was following the steps here: https://docs.microsoft.com/en-us/office/dev/add-ins/quickstarts/excel-quickstart-jquery?tabs=yeomangenerator

Once I run npm start:

npm start

> office-addin-taskpane-js@0.0.1 start .....\My Office Add-in
> office-addin-debugging start manifest.xml

Debugging is being started...
App type: desktop
Enabled debugging for add-in 05c2e1c9-3e1d-406e-9a91-e9ac64854143. Debug method: 0
Starting the dev server... (webpack-dev-server --mode development)
Unable to start the dev server. Error: The dev server is not running on port 3000.
Sideloading the Office Add-in...
Debugging started.

image

I am on Windows 10 Please can you help me run the add-in? Would really like to try this out 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
akrantzcommented, Jul 19, 2019

@sarahboyce If you go to the directory “c:\users\Sarah Boyce.office-addin-dev-certs”, you could manually install the CA certificate.

  1. Double-click the ca.crt file.
  2. Click the “Install Certificate…” button.
  3. Choose “Current User” and click Next.
  4. Choose “Place all certificates in the following store” and click Browse…
  5. Select “Trusted Root Certification Authorities” and click OK.
  6. Click Next and Finish.

Once the CA certificate is installed, npm run dev-server should be able to run successfully.

1reaction
akrantzcommented, Jul 19, 2019

@sarahboyce Run this command: npx office-addin-dev-certs install.

If the certificates are already installed, you’ll see a message:

You already have trusted access to https://localhost.

If the certificates are not installed, it will show a message:

The developer certificates have been generated in C:\Users\adamk\.office-addin-dev-certs
Installing CA certificate "Developer CA for Microsoft Office Add-ins"...

You should then see the dialog asking to install the certificate.

After saying yes, it should then show:

You now have trusted access to https://localhost.

Once the certificates are installed, you should be able to run the dev server without problems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to start the dev server. Error: The dev server is not ...
The error about being unable to start the dev server is likely because it is timing out waiting for the prompt.
Read more >
Unable to start webpack-dev-server - Stack Overflow
I have tried deleting and re-installing the the node_modules folder (many times), as well as deleting just the webpack-dev-server folder and re- ...
Read more >
Unable to start webpack-dev-server - Render community
It looks like the error is telling you that you don't have a dev_server: config in your webpacker.yml file. When you run webpack-dev-server...
Read more >
Error: Unable to Start Debugging on the Web Server
When you try to debug an ASP.NET application running on a Web server, you may get this error message: Unable to start debugging...
Read more >
webpack-dev-server: command not found error [Solved]
To solve the error "webpack-dev-server: command not found", install the package globally by running npm install -g webpack-dev-server and restart your terminal.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found