node.js – Cannot GET /taskpane.html

I am following the guide here: learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart-yo

My environment:

  • Node v22.19.0
  • Windows 11
  • Visual Studio Code

I have followed all the steps as outlined in the tutorial:

  1. Installed the yeoman generator npm install -g yo generator-office
  2. Created the add-in project yo office
  3. These are the options that I selected:
  4. Choose a project type – Office Add-in Task Pane project
  5. Choose a script type – JavaScript
  6. What do you want to name your add-in? – My Office Add-in
  7. Which Office client application would you like to support? – Outlook
  8. Which manifest would you like to use? – Add-in only manifest

However, when I run npm start to test the project. All I get from localhost:3000/taskpane.html is Cannot GET /taskpane.html.

Things that have already been done:

  • Uninstall node and reinstall
  • Reboot the PC
  • Cleaned npm cache
  • Started a new project

I am lost here. I have asked gemini and chatgpt to no avail. I have researched if anyone has the same issue and nothing. This has happened in two different PCs. Not sure what is the problem. Please help.

Read more here: Source link

node.js – Cannot GET /taskpane.html

I am following the guide here: learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart-yo

My environment:

  • Node v22.19.0
  • Windows 11
  • Visual Studio Code

I have followed all the steps as outlined in the tutorial:

  1. Installed the yeoman generator npm install -g yo generator-office
  2. Created the add-in project yo office
  3. These are the options that I selected:
  4. Choose a project type – Office Add-in Task Pane project
  5. Choose a script type – JavaScript
  6. What do you want to name your add-in? – My Office Add-in
  7. Which Office client application would you like to support? – Outlook
  8. Which manifest would you like to use? – Add-in only manifest

However, when I run npm start to test the project. All I get from localhost:3000/taskpane.html is Cannot GET /taskpane.html.

Things that have already been done:

  • Uninstall node and reinstall
  • Reboot the PC
  • Cleaned npm cache
  • Started a new project

I am lost here. I have asked gemini and chatgpt to no avail. I have researched if anyone has the same issue and nothing. This has happened in two different PCs. Not sure what is the problem. Please help.

Read more here: Source link