I followed the outlook learning path to create a task pane add-in. When I do npm start I get 'Failed to retrieve token silently.'. How do I find out whats wrong?
Hi, I have been following this learning path https://learn.microsoft.com/en-us/office/dev/add-ins/quickstarts/outlook-quickstart-yo.
When I do the npm start it opens the browser at the login page and allows me to log-in. Then I get the following:
C:\Users\david\O2M>npm start
office-addin-taskpane-js@0.0.1 start office-addin-debugging start manifest.xml (node:6876) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) Debugging is being started... App type: desktop Enabled debugging for add-in bb9651aa-8853-48e7-8afe-d47564e3617b. Starting the dev server... (webpack serve --mode development) The dev server is running on port 3000. Process id: 4996 Sideloading the Office Add-in... running: npx @microsoft/teamsapp-cli install --xml-path "C:\Users\david\O2M\manifest.xml" Log in to your Microsoft 365 account - opening default web browser at https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=7ea7c24c-b1f6-4a20-9d11-9ae12e9e7ac0&scope=https%3A%2F%2Ftitles.prod.mos.microsoft.com%2F.default%20openid%20profile%20offline_access&redirect_uri=http%3A%2F%2Flocalhost%3A59993&client-request-id=1dc8e9e0-eaa3-4fa4-acca-1b9923f4ab28&response_mode=query&response_type=code&x-client-SKU=msal.js.node&x-client-VER=2.6.6&x-client-OS=win32&x-client-CPU=x64&client_info=1&code_challenge=ztKkeTYRGG0QFVrAzAlHWSfd2mqsJ1KX4DyMHFd5gY8&code_challenge_method=S256&prompt=select_account# [Login] Failed to retrieve token silently. If you encounter this problem multiple times, you can deleteC:\Users\david\.fx\account
and try again. invalid_scope: 70011 - [2025-01-26 22:09:57Z]: AADSTS70011: The provided value for the input parameter 'scope' is not valid. The scope 'https://dev.teams.microsoft.com/AppDefinitions.ReadWrite openid profile offline_access' does not exist. Trace ID: 5593e017-a45b-441b-b096-5b6f33263000 Correlation ID: e16c49cd-f890-4d2d-94f9-597c3a136db4 Timestamp: 2025-01-26 22:09:57Z - Correlation ID: e16c49cd-f890-4d2d-94f9-597c3a136db4 - Trace ID: 5593e017-a45b-441b-b096-5b6f33263000 --Error sideloading!-- Error: Error: Command failed: npx @microsoft/teamsapp-cli install --xml-path "C:\Users\david\O2M\manifest.xml" (node:372) [DEP0040] DeprecationWarning: Thepunycode
module is deprecated. Please use a userland alternative instead. (Usenode --trace-deprecation ...
to show where the warning was created) (node:372) [DEP0044] DeprecationWarning: Theutil.isArray
API is deprecated. Please useArray.isArray()
instead. (×) Error: Get ServiceUrl failed. Request failed with status code 403 (×) Error: m365.InternalError: Request failed with status code 403 (tracingId: ) :
My manifest file is attached. manifest.xml
I see that almost exactly the same question was asked a year ago https://learn.microsoft.com/en-us/answers/questions/1533802/outlook-add-in-failed-to-sideload-due-to-authoriza but has no answer.
Can anyone tell me how to get past this? Is there a different approach that works?