In version 4, XState changed the functions that are exported from the `actions` module. `toEventObject` was removed. Here is the commit https://github.com/davidkpiano/xstate/commit/5dd4ca6f8a6e4d615a8db9fd310e228a8ed3bef8#diff-f41e9d04a45c83f3b6f6e630f10117fe I forked XState and added back the missing functions, and then this lib works fine. Thanks for the great library!