twilio / flex-plugin-builder

Packages related to building a Twilio Flex Plugin
https://www.twilio.com/docs/flex/developer/plugins/cli
MIT License
83 stars 56 forks source link

[BUG] ##[error]Bash exited with code '254'. #990

Closed scriptkd closed 5 months ago

scriptkd commented 5 months ago

Description

We update our Twilio plugin with a yaml pipeline. Starting today, we are getting the following error in our shell script when it tries to run flex:plugins:deploy:

Invalid Version: 0.275 [DEBUG] Found command "flex:plugins:deploy" plugin: @twilio-labs/plugin-flex » twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio/flex-plugin-builder/issues" [DEBUG] Invalid Version: 0.275 [DEBUG] TypeError: Invalid Version: 0.275 at new SemVer (/home/vsts/.twilio-cli/node_modules/semver/classes/semver.js:38:13) at compare (/home/vsts/.twilio-cli/node_modules/semver/functions/compare.js:3:32) at Object.gt (/home/vsts/.twilio-cli/node_modules/semver/functions/gt.js:2:29) at FlexPluginsDeploy.validatePlugin (/home/vsts/.twilio-cli/node_modules/@twilio-labs/plugin-flex/dist/commands/flex/plugins/deploy.js:134:38) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) error: Error running node /home/vsts/work/1/s/source/tools/twilio/node_modules/twilio-cli/bin/run flex:plugins:deploy --version=0.0.275 -l debug --changelog="No changelog provided..." in /home/vsts/work/1/s/source/twilio/plugins/plugin-cat-main: Command failed: node /home/vsts/work/1/s/source/tools/twilio/node_modules/twilio-cli/bin/run flex:plugins:deploy --version=0.0.275 -l debug --changelog="No changelog provided..."

[error]Bash exited with code '254'.

Versions

package version
@twilio/plugin-flex 6.3.2
flex-plugin-scripts 6.3.2
node 18
npm 8.19.2

Package.json

{ "name": "tcom-plugin", "version": "0.0.275", "private": true, "scripts": { "postinstall": "flex-plugin pre-script-check" }, "dependencies": { "@emotion/core": "^11.0.0", "@emotion/css": "^11.1.3", "@emotion/react": "^11.1.5", "@emotion/styled": "^11.1.5", "@material-ui/core": "^4.12.4", "@material-ui/icons": "^4.11.3", "@prftesp/cle-logger": "^2.3.1", "@twilio-paste/core": "^19.4.0", "@twilio/flex-plugin-scripts": "6.3.2", "axios": "^0.21.4", "dotenv": "^16.0.2", "flex-plugin": "latest", "libphonenumber-js": "^1.9.44", "lodash": "^4.17.21", "moment": "^2.29.1", "moment-timezone": "^0.5.39", "react": "^17.0.2", "react-audio-player": "^0.17.0", "react-dom": "^17.0.2", "react-redux": "^7.2.2", "react-router-dom": "^5.2.0", "react-select": "^3.1.0", "redux": "^4.0.5", "url-join": "^5.0.0" }, "devDependencies": { "@twilio/flex-ui": "2.5.1", "react-test-renderer": "^17.0.2" }, "overrides": { "rfc6902": "5.0.1", "@udecode/plate-link": "20.0.0" } }

Steps to Reproduce

You would need access to our exact pipelines to directly reproduce this. But our pipelines were running without issue yesterday, and now they are breaking at the plugin deployment step. Nothing has changed in our pipeline.

Expected Behavior

Pipeline runs without error

Screenshots

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

scriptkd commented 5 months ago

This is resolved, I think. I changed the plugin version to 0.1.0 and the pipeline stopped failing. It was running fine yesterday in the previous format, but this works