# Preview Support

**URL:** <https://community.prismic.io/t/preview-support/2743>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [November 18, 2020, 4:08pm UTC](https://community.prismic.io/t/preview-support/2743 "2020-11-18T16:08:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![arcaneshawn](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@arcaneshawn](https://community.prismic.io/u/arcaneshawn)\
**Post date:** [November 18, 2020, 4:08pm UTC](https://community.prismic.io/t/preview-support/2743/1 "2020-11-18T16:08:36Z")

</div>

Is preview and the toolbar supported on the OOB Nuxt/SM project? When I hit preview the correct page loads but not with the updated content or the toolbar. I created a preview in my settings pointing to the localhost and with "/preview" in the link resolver field.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 19, 2020, 1:24am UTC](https://community.prismic.io/t/preview-support/2743/2 "2020-11-19T01:24:41Z")

</div>

Hello Shawn, yes, previews work with SM nuxt projects.

To be able to do a test on my side, could you tell me:

- Which browser are you using, and if its Chrome, the current version installed on your machine?
- The URL of your repository

You can send this info to me in a private dm if your prefer.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [November 19, 2020, 1:37pm UTC](https://community.prismic.io/t/preview-support/2743/4 "2020-11-19T13:37:33Z")

</div>

Hey Shawn,

There seems to be an issue with previews for SM repositories. It seems to be on Chrome and we think it's to do with a cookie policy issue, we rolled out a fix previously on other groups. We're looking in to it and we'll update you here once we know more.

Thanks.

---

<div class="post-metadata">

**Author:** ![arcaneshawn](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@arcaneshawn](https://community.prismic.io/u/arcaneshawn)\
**Post date:** [November 19, 2020, 3:21pm UTC](https://community.prismic.io/t/preview-support/2743/5 "2020-11-19T15:21:52Z")

</div>

@Phil : Thanks for looking into that. I am happy to hear it is not me. lol. I am in fact using Chrome. I will check with another browser. Please keep me informed.

_edit:_ I tried in Edge and Safari as well and still was not getting the toolbar or the updated content.

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [November 27, 2020, 6:39am UTC](https://community.prismic.io/t/preview-support/2743/7 "2020-11-27T06:39:30Z")

</div>

Hi Phil,  
I have the same problem.  
No toolbar visible and the preview works but with not the saved (updated) content.  
I send you my prismic rep in dm

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [November 27, 2020, 10:15am UTC](https://community.prismic.io/t/preview-support/2743/10 "2020-11-27T10:15:59Z")

</div>

Hey Benoit,

We are working on the fix for this and it should be done soon. I'll let you know when this is done.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 10, 2020, 10:03am UTC](https://community.prismic.io/t/preview-support/2743/11 "2020-12-10T10:03:34Z")

</div>

Hey Benoit,

This was fixed last week can you confirm?

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [December 11, 2020, 7:40am UTC](https://community.prismic.io/t/preview-support/2743/12 "2020-12-11T07:40:31Z")

</div>

Hi Phil,  
I have the same problem, no update of the content in the preview.  
Also in the toolbar iframe, the html is empty.  
Could you check if my config is ok ?

 ![Capture d’écran 2020-12-11 à 08.32.51](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/0/06a6f353df434cb90da58f63643eb328a37954a1.png)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 11, 2020, 9:57am UTC](https://community.prismic.io/t/preview-support/2743/13 "2020-12-11T09:57:46Z")

</div>

Can you send me the github link for your project so I can test this?

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [December 11, 2020, 10:25am UTC](https://community.prismic.io/t/preview-support/2743/14 "2020-12-11T10:25:43Z")

</div>

Hi Phil,  
I sent you a pm

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 11, 2020, 1:37pm UTC](https://community.prismic.io/t/preview-support/2743/15 "2020-12-11T13:37:32Z")

</div>

@benoit.jollivet I checked out your project and I was able to preview fine on your homepage. I removed the preview route from the link resolver and `preview: "/preview",` from the nuxt.config as these aren't necessary.

 ![Screenshot 2020-12-11 at 14.32.48](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/c/ce34fc358599c2a162be6ea9e5cadac04e46f041.jpeg)

Though when I tried to visit the page route `http://192.168.1.50:8000/styleguide` without preview I got the following error:

```auto
TypeError

Cannot read property 'resolver' of undefined

```

Which I don't really understand, but I saw you had `<slice-zone type="page" :uid="uid" />` instead of `<slice-zone type="page" :uid="$route.params.uid" />`

It works fine on the job page though:

 ![Screenshot 2020-12-11 at 14.52.13](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/b/b71b423666014921812a40367ffe62fc96d0dbe3.png)

So there doesn't seem to be any preview problems.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 11, 2020, 2:59pm UTC](https://community.prismic.io/t/preview-support/2743/16 "2020-12-11T14:59:45Z")

</div>

We resolved your other issue with some investigation too, thanks @hugo.villain.

In the modules of your nuxt.config you have an array inside and array. So you have:

```auto
  modules: [
    [
      "@nuxtjs/prismic",
      "@nuxtjs/google-analytics",
      "@nuxtjs/sitemap",
      "nuxt-sm",
    ],
  ],

```

Instead of...

```auto
  modules: [
      "@nuxtjs/prismic",
      "@nuxtjs/google-analytics",
      "@nuxtjs/sitemap",
      "nuxt-sm",
  ],

```

Which causes your page to break.

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [December 15, 2020, 10:07am UTC](https://community.prismic.io/t/preview-support/2743/17 "2020-12-15T10:07:15Z")

</div>

Hi Phil,  
I haven't yet managed to get the preview and the toolbar to work.  
I will try again.  
Thanks for your time and help.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 16, 2020, 10:54am UTC](https://community.prismic.io/t/preview-support/2743/18 "2020-12-16T10:54:56Z")

</div>

Can you try in a different browser?

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [December 17, 2020, 9:10am UTC](https://community.prismic.io/t/preview-support/2743/19 "2020-12-17T09:10:51Z")

</div>

It works on Firefox now.  
But not in Chrome and Safari.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 17, 2020, 10:44am UTC](https://community.prismic.io/t/preview-support/2743/20 "2020-12-17T10:44:31Z")

</div>

It works for me in Chrome. Can you try changing your settings in Safari as described here? Then test again. Can you test locally too?

> **[Troubleshooting: Previews](https://user-guides.prismic.io/en/articles/3403530-troubleshooting-previews)**
>
> Are your Prismic previews not working? Here we'll show you some common checks to get your previews up and running again.

---

<div class="post-metadata">

**Author:** ![benoit.jollivet](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@benoit.jollivet](https://community.prismic.io/u/benoit.jollivet)\
**Post date:** [December 17, 2020, 4:41pm UTC](https://community.prismic.io/t/preview-support/2743/21 "2020-12-17T16:41:50Z")

</div>

I find the solution, it was the same problem as Safari with cookies.

 ![Capture d’écran 2020-12-17 à 17.39.41](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/6/678ac3764f0be23218508c30a79c822ad7baf742.jpeg)

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 17, 2020, 7:02pm UTC](https://community.prismic.io/t/preview-support/2743/22 "2020-12-17T19:02:19Z")

</div>

I'm glad you figured it out 🙂 hopefully this thread will help others in the future.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [December 17, 2020, 11:41pm UTC](https://community.prismic.io/t/preview-support/2743/23 "2020-12-17T23:41:01Z")

</div>

closed on December 17, 2020, 11:41pm UTC, flag & select 'Something Else' to reopen.



---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:57pm UTC](https://community.prismic.io/t/preview-support/2743/24 "2021-12-09T17:57:12Z")

</div>

Opened on December 9, 2021, 5:57pm UTC


