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

twillio flex:plugins:start does not work on windows #759

Closed jared-hunter closed 1 year ago

jared-hunter commented 1 year ago

Description

twilio flex:plugins:start will not work on windows and throws the following error

this[kHandle] = new _Hash(algorithm, xofLen);
                  ^
Error: error:0308010C:digital envelope routines::unsupported

Versions

package version
@twilio/plugin-flex 6.0.3
flex-plugin-scripts X.Y.Z
node 18.12.1
npm 9.1.3

Package.json

Please include the entire content of your package.json.

{
  "name": "MySamplePlugin",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "postinstall": "flex-plugin pre-script-check"
  },
  "dependencies": {
    "@twilio/flex-plugin-scripts": "6.0.3",
    "react": "16.5.2",
    "react-dom": "16.5.2",
    "react-emotion": "9.2.12"
  },
  "devDependencies": {
    "@twilio/flex-ui": "^1",
    "react-test-renderer": "16.5.2"
  }
}

Steps to Reproduce

Please provide the steps to reproduce this bug:

  1. twilio flex:plugins:start to start any plugin locally

Expected Behavior

correctly launch the plugin

Screenshots

Screenshot 2022-12-05 at 10 09 38

Additional Context

Add any other context about the problem here.

jared-hunter commented 1 year ago

I tested on the following versions

aishwarya-tw commented 1 year ago

@jhunter-twilio Node 16 and 18 support was added in Plugin CLI v6.1.0. Upgrading to that version or higher should solve this issue.