Recent searches
No recent searches
zcli Cannot read properties of undefined (reading 'ux')
Posted Jan 20, 2023
I'm getting this error when trying to run `zcli apps:new`
TypeError: Cannot read properties of undefined (reading 'ux')
Env: Debian 11.6
node v18.13.0
npm 8.19.3
Do you have any ideas ?
0
7
7 comments
Arsim Sejdiu
Hello,
check before using the property "ux" exp: if(typeof ux !== "undefined") return ux
0
Tom Laflamme
The problem is that it's coming from "zcli" itself not from my code
0
Greg Katechis
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.
0
Alexis Davidson
Same issue. There was a fix on Github but after updating the npm package nothing changed.
0
Greg Katechis
Hi Alexis! I would recommend deleting the zcli package altogether and re-installing as fresh. Let us know if the issue persists after that.
1
Tom Laflamme
Hey Greg, thank you it works for me !
Alexis You have to uninstall previous version
1
Alexis Davidson
That worked, thanks
0