I have a nextjs project repo id jenzabar-next. I have set up preview mode in an identical way to my other prismic projects which work. Yet window.prismic.Toolbar is undefined in jenzabar-next. The preview does work when clicking the eye icon but the toolbar is not available.
using packages "@prismicio/client": "^5.1.0" in dependencies and "prismic-cli": "^3.8.13" in devDependencies
I initially thought it was this issue but I think it is something else
I copied the prismic script exactly from the preview settings page
Hi @Pau yes the script is in the head. window.prismic is defined and looks fine. As is "window.prismicToolbar" but not window.prismic.Toolbar like on other projects. It's very confusing!
@Pau Thank you. Just to be clear, I am using the latest script in all my projects, including the one with the issue. The other projects have both window.prismicToolbar and window.prismic.Toolbar.