OfficeDev / teams-toolkit-samples

Scenario-focused sample applications that help you get started with building Microsoft Teams App.
MIT License
324 stars 225 forks source link

Deploy is failing #1279

Open diegoriera opened 1 month ago

diegoriera commented 1 month ago

Deploy of sample is failing: https://github.com/OfficeDev/teams-toolkit-samples/tree/dev/command-bot-with-sso

It is being provisioned correctly, however deploy is failing without any customization.

[2024-05-22T16:40:41.803Z] [Info] - Executing deploy

Lifecycle stage: deploy(3 step(s) in total). The following actions will be executed: (1/3) Action cli/runNpmCommand: running npm command. (2/3) Action cli/runNpmCommand: running npm command. (3/3) Action azureAppService/zipDeploy: deploy the project to the Azure App Service.

[2024-05-22T16:40:41.804Z] [Info] - Executing lifecycle deploy [2024-05-22T16:40:59.469Z] [Info] - [script stdout] added 3 packages, and audited 454 packages in 10s

[2024-05-22T16:40:59.470Z] [Info] - [script stdout] 84 packages are looking for funding run npm fund for details

[2024-05-22T16:40:59.497Z] [Info] - [script stdout] 10 moderate severity vulnerabilities

To address issues that do not require attention, run: npm audit fix

Some issues need review, and may require choosing a different dependency.

Run npm audit for details.

[2024-05-22T16:41:01.164Z] [Info] - [script stdout]

sso-command-bot@1.0.0 build tsc --build && shx cp -r ./src/adaptiveCards ./lib/src && copyfiles src/public/*.html lib/

[2024-05-22T16:41:09.821Z] [Info] - [script stdout] node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.d.ts(1,15): error TS1005: ',' expected.

[2024-05-22T16:41:09.822Z] [Info] - [script stdout] node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.d.ts(2,15): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.d.ts(4,15): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/createPipelineFromOptions.d.ts(5,15): error TS1005: ',' expected.

[2024-05-22T16:41:09.823Z] [Info] - [script stdout] node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(14,15): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(14,60): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(14,80): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(14,101): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(15,42): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(15,65): error TS1005: ',' expected.

[2024-05-22T16:41:09.823Z] [Info] - [script stdout] node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(15,95): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(18,38): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(19,26): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(21,39): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(23,41): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(26,51): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(27,39): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(28,65): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(29,28): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(31,49): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(32,35): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(33,53): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(36,48): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(36,130): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(36,155): error TS1005: ',' expected.

[2024-05-22T16:41:09.824Z] [Info] - [script stdout] node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(36,185): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(38,52): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(39,49): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/index.d.ts(39,73): error TS1005: ',' expected. node_modules/@azure/core-rest-pipeline/dist/commonjs/policies/retryPolicy.d.ts(2,15): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(1,22): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(2,15): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(2,57): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(3,39): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(5,25): error TS1005: ',' expected. node_modules/@azure/core-util/dist/commonjs/index.d.ts(11,55): error TS1005: ',' expected.

[2024-05-22T16:41:09.824Z] [Info] - [script stdout] node_modules/@azure/logger/dist/commonjs/index.d.ts(1,15): error TS1005: ',' expected.

[2024-05-22T16:41:09.871Z] [Error] - Failed to Execute lifecycle deploy due to failed action: cli/runNpmCommand. ScriptExecutionError:Unable to execute script action.. Env output: {} [2024-05-22T16:41:09.873Z] [Info] - Execution summary:

Summary: (×) Error: Lifecycle stage deploy failed. (√) Done: cli/runNpmCommand was executed successfully. (√) Done: Successful execution of the npm install command at c:\TeamsFx-Samples-dev\command-bot-with-sso - DeployTest\. (×) Error: cli/runNpmCommand failed. (×) Error: Unable to execute script action. (!) Warning: azureAppService/zipDeploy was not executed.

SLdragon commented 1 month ago

Hi, @diegoriera , from your error message, seems it is related that some packages uses new typescript features, and you can update typescript version > 4.5 in package.json file and try again:

Reference: node.js - error TS1005: ',' expected. import { type ParserOptions } - Stack Overflow