Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
g7crservice-Binni-kumari opened this issue Dec 12, 2023 · 0 comments
Open

Comments

@g7crservice-Binni-kumari

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

@g7crservice-Binni-kumari g7crservice-Binni-kumari changed the title Encountering "Found additional Yo Teams plugin: yoteams-deploy". Single sign-on (SSO) with Microsoft gulp manifest not working - missing package\*.zip file Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant