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:
- Installed the yeoman generator
npm install -g yo generator-office - Created the add-in project
yo office - These are the options that I selected:
- Choose a project type – Office Add-in Task Pane project
- Choose a script type – JavaScript
- What do you want to name your add-in? – My Office Add-in
- Which Office client application would you like to support? – Outlook
- 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
