generator-teams icon indicating copy to clipboard operation
generator-teams copied to clipboard

Bug report: Cannot deploy to teams apps

Open ayberkcal opened this issue 3 years ago • 0 comments

Description

I try to publish and debug my app with gulp ngrok-serve --publish command. But "Unable to start m365 CLI, ensure that @pnp/cli-microsoft365 is installed!" error occurred. I checked my package.json and "@pnp/cli-microsoft365" package installed.

gulp ngrok-serve --publish         
[23:34:11] Found additional Yo Teams plugin: yoteams-deploy
[23:34:11] Using gulpfile C:\development\playground\teams-tab-test\gulpfile.js
[23:34:11] Starting 'ngrok-serve'...
[23:34:11] Starting 'start-ngrok'...
[23:34:11] [NGROK] starting ngrok...
[23:34:12] [NGROK] Url: https://83bb-176-88-224-238.ngrok.io
[23:34:12] [NGROK] You have been assigned a random ngrok URL that will only be available for this session. You will need to re-upload the Teams manifest next time you run this command.
[23:34:12] [NGROK] PUBLIC_HOSTNAME set to: 83bb-176-88-224-238.ngrok.io
[23:34:12] [NGROK] Inspect Url: http://127.0.0.1:4040
[23:34:12] Finished 'start-ngrok' after 897 ms
[23:34:12] Starting 'serve'...
[23:34:12] Starting 'nuke'...
[23:34:12] Finished 'nuke' after 37 ms
[23:34:12] Starting 'tenant:deploy'...
[23:34:12] Starting 'manifest'...
[23:34:12] Starting 'validate-manifest'...
[23:34:12] Starting 'generateManifests'...
[23:34:12] Finished 'generateManifests' after 68 ms
[23:34:12] Starting 'validateSchemas'...
[23:34:12] manifest.json is using manifest schema 1.13
[23:34:12] Finished 'validateSchemas' after 431 ms
[23:34:12] Finished 'validate-manifest' after 505 ms
[23:34:12] Starting 'zipTask'...
[23:34:12] Creating package teamstabtest.zip
[23:34:12] Finished 'zipTask' after 61 ms
[23:34:13] Finished 'manifest' after 572 ms
[23:34:13] Starting 'tenant:publish'...
[23:34:13] Starting 'tenant:login'...
[23:34:13] Unable to start m365 CLI, ensure that @pnp/cli-microsoft365 is installed!
[23:34:13] 'tenant:login' errored after 11 ms
[23:34:13] Error in plugin "yoteams-deploy"
Message:
    Error checking m365 status
[23:34:13] 'tenant:publish' errored after 19 ms
[23:34:13] 'tenant:deploy' errored after 597 ms
[23:34:13] Finished 'serve' after 641 ms
[23:34:13] Finished 'ngrok-serve' after 1.55 s
^C

Steps to reproduce

use gulp ngrok-serve --publish command

Expected results

Publish app.

Actual results

Error occurred.

Project you experience issues with

yoteams-deploy

generator version

4.0.1

build tools version

1.7.0

nodejs version

v16.13.1

npm version

8.3.0

Operating system (environment)

Windows

Additional Info

No response

ayberkcal avatar Aug 13 '22 20:08 ayberkcal