zcli Cannot read properties of undefined (reading 'ux')
I'm getting this error when trying to run `zcli apps:new`
TypeError: Cannot read properties of undefined (reading 'ux')
Env: Debian 11.6
Do you have any ideas ?
check before using the property "ux" exp: if(typeof ux !== "undefined") return ux
The problem is that it's coming from "zcli" itself not from my code
Hi Tom and anyone else following along here!
It seems there there was an update to an upstream dependency for oclif, which is what zcli is built on. Looking at our package.json, we see that we have some loose controls for dependency versioning, which is why we're seeing these errors on new installs.
We expect to have this resolved after the weekend, when the appropriate teams can push the changes to npm. We have also already shared some thoughts on version control so that we can prevent this from happening down the line. For the time being, if you already have an installation of zcli, you'll be fine. If you don't, but you do have ZAT setup, I would recommend using that over the weekend.
Apologies for the headaches here and I'll drop a line once we have this resolved.
Same issue. There was a fix on Github but after updating the npm package nothing changed.
Hi Alexis! I would recommend deleting the zcli package altogether and re-installing as fresh. Let us know if the issue persists after that.
Hey Greg, thank you it works for me !
Alexis You have to uninstall previous version
That worked, thanks