@renaud it looks like the docs still aren’t up to date with this deprecation warning. It’s very confusing, particularly since it shows a link to get the ‘complete documentation’, which isn’t complete, and therefore not helpful.
Thank you very much for making us aware of this. I'll make sure this section of the documentation is clearer.
For now, you need to check the preview script in your repo for new=true and if you don't see it, just ask us to activate the New toolbar for you here in the forum:
We've updated the documentation to display the correct version of the script and it's now available in all repositories.
Now, If you still use it in your project and see this error, go to your repository's Settings > Previews and Include the Prismic Toolbar javascript file in your project.
Thanks a lot!
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
16
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
Hello @tim9, we've merged this update into all the repositories. You should be able to see it and change it in your code. I've updated the solution of this thread to reflect this information.
@Pau , I see it in the source code, what I mean is that one of the prismic packages is inserting that script. Can you let me know which package I need to upgrade to get the new version of the the script?
@Pau , I see this code is being injected by gatsby-source-prismic-graphql. I'm guessing that means we need to migrate to gatsby-source-prismic for previews to work? Is there any way to get previews working in the interim without migrating? When I add the current script to the page, I get a new warning about 2 integration scripts being included.