UnhandledPromiseRejectionWarning in Office Code
See original GitHub issueExpected behavior
I expect to run the yo generator, and then ran configure-sso. I have done this before and it has worked, but now after I get the error below.
Current behavior
I ran the yo generator, and then ran configure-sso. I have done this before successfully but now I see the following error, and the code builds, but will not start via npm start.
Login was successful! (node:19636) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘readManifestFile’ of undefined at Command.<anonymous> (G:\My Documents\GitHub\MSKSpamSubmitter\node_modules\office-addin-sso\lib\commands.js:47:84) at Generator.next (<anonymous>) at fulfilled (G:\My Documents\GitHub\MSKSpamSubmitter\node_modules\office-addin-sso\lib\commands.js:6:58) at processTicksAndRejections (internal/process/task_queues.js:95:5) (Use
node --trace-warnings ...
to show where the warning was created) (node:19636) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:19636) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Steps to Reproduce
Followed these instructions: https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/quickstarts/sso-quickstart.md
- Selected Outlook for SSO and Typescript.
- Ran npm run configure-sso
Context
- Win 10 (with admin)
- Node LTS 14.17.4
- TS 4.2.4
- VS Code
Failure Logs
- See error output above
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
That’s a different issue (being fixed). Run “npm install” and then setup sso.
The was a breaking change in a dependent package. An update has been pushed (still working on the JS version of this though)