Skip to content

Instantly share code, notes, and snippets.

@thestephenmarshall
Created May 2, 2022 22:27
Show Gist options
  • Save thestephenmarshall/783e4b66572175f64ce85b80f175c1cb to your computer and use it in GitHub Desktop.
Save thestephenmarshall/783e4b66572175f64ce85b80f175c1cb to your computer and use it in GitHub Desktop.

A nasty moment related error was noted in BT Support Tickets after Playbook 10.25.0 was merged to master.

Error:

Uncaught TypeError: u.default.tz is undefined

Findings:

Postulation:

The two different versions of moment (Playbook vs. Nitro) are not playing well together.

Actions:

  • Revert was created for Playbook 10.25.0 in Nitro
  • Patch was created for Playbook 10.25.1 to remove the critical security fix that is causing the afforementioned issues
  • Given other parts of Nitro making use of Playbook's <Date> kit from the release 10.25.0, some investigation should be put into understanding the reason for these issues as well as justification for importing moment from nitro_react instead of directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment