zcli Cannot read properties of undefined (reading 'ux')

7 コメント

  • Greg Katechis
    Zendesk Developer Advocacy

    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
  • 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
    Zendesk Developer Advocacy

    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
  • Alexis Davidson

    That worked, thanks

    0

サインインしてコメントを残してください。

Powered by Zendesk