Skip to content

gulp manifest not working - missing package\*.zip file #379

@g7crservice-Binni-kumari

Description

Description

I am attempting Single Sign-On (SSO) with Microsoft Teams Bots, and for this, I need a ZIP file located in the "./package" directory. However, I have not obtained it yet.

Microsoft provided the following solution for the ZIP file:

Stop the local web server by pressing CTRL+C in the console.
Install the preview version of the yoteams-deploy package using the command npm install yoteams-deploy@preview
Restart the server process: gulp ngrok-serve --debug

After implementing this, getting this Plugin - Found additional Yo Teams plugin: yoteams-deploy

Terminal Error: -
[18:18:19] Found additional Yo Teams plugin: yoteams-deploy
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\node_modules\chalk\source\index.js from C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js not supported.
Instead change the require of index.js in C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js to a dynamic import() which is available in all CommonJS modules.
at Object. (C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js:10:33) {
code: 'ERR_REQUIRE_ESM'
}

I am having difficulty finding an appropriate solution for this.
Referred from - https://learn.microsoft.com/en-us/training/modules/msteams-sso/7-exercise-bots-sso

Steps to reproduce

Referred from - https://learn.microsoft.com/en-us/training/modules/msteams-sso/7-exercise-bots-sso

  1. Stop the local web server by pressing CTRL+C in the console.
  2. Install the preview version of the yoteams-deploy package using the command npm install yoteams-deploy@preview
  3. Restart the server process: gulp ngrok-serve --debug

Expected results

After running command - gulp ngrok-serve, Tunnal should start and provide the Zip file inside ./package folder.

Actual results

Terminal Error: -
[18:18:19] Found additional Yo Teams plugin: yoteams-deploy
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\node_modules\chalk\source\index.js from C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js not supported.
Instead change the require of index.js in C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js to a dynamic import() which is available in all CommonJS modules.
at Object. (C:\Users\Binni Kumari\Documents\POC's project\msteams-sso\node_modules\yoteams-deploy\dist\execute.js:10:33) {
code: 'ERR_REQUIRE_ESM'
}

Project you experience issues with

generator-teams

generator version

4.1.0

build tools version

^1.8.0

nodejs version

v20.10.0

npm version

10.2.5

Operating system (environment)

Windows

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions