Previews not function in the updated prismic-javascript package

attempting to follow this to get previews to display but since upgrading the node package (@prismicio/client) I get a previewSession not found error

Resolved using this documentation