Description
Description
A clear and concise description of what the bug is.
Versions
You can find the version of your @twilio/plugin-flex
by typing twilio plugins
.
package | version |
---|---|
@twilio-labs/plugin-flex |
6.2.0 |
flex-plugin-scripts |
6.2.0 |
node |
16.19.1 |
npm |
8.19.3 |
Package.json
Please include the entire content of your package.json
.
{ "name": "plugin-ciptex-template", "version": "0.2.0", "private": true, "scripts": { "build": "twilio flex:plugins:build", "preinstall": "./preinstall.mjs", "postinstall": "flex-plugin pre-script-check", "start": "twilio flex:plugins:start --include-remote" }, "dependencies": { "@ciptex/race-ui": "^1.28.13", "@twilio/flex-plugin-scripts": "^6.2.0", "react": "16.13.1", "react-dom": "16.13.1", "react-emotion": "9.2.12" }, "devDependencies": { "@twilio/flex-ui": "^1.34.4", "@typescript-eslint/eslint-plugin": "^6.7.4", "@typescript-eslint/parser": "^6.7.4", "eslint": "^8.50.0", "eslint-plugin-react": "^7.33.2", "react-test-renderer": "^16.13.1", "typescript": "^5.2.2" } }
Steps to Reproduce
Please provide the steps to reproduce this bug:
- Build plugin with
twilio flex:plugins:build
Plugins built using 6.2.0 of CLI Plugin produce the error that Uncaught ReferenceError: global is not defined
when loaded in flex and contain incorrect references to global.CSS
in the code. Replicated this behaviour across every plugin.
Plugins function as expected when built with 6.1.2 can contain no reference to global
Expected Behavior
Plugins to Build and work as expected