There are some breaking api changes as documented here: https://github.com/xtermjs/xterm.js/releases/tag/5.0.0