# Warning from i18n module about preview.vue

**URL:** <https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181>\
**Category:** Developing with Prismic\
**Tags:** nuxtjs\
**Created:** [September 23, 2021, 6:00am UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181 "2021-09-23T06:00:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![busted\_github\_sso](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@busted\_github\_sso](https://community.prismic.io/u/busted_github_sso)\
**Post date:** [September 23, 2021, 6:00am UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/1 "2021-09-23T06:00:38Z")

</div>

I'm building a Nuxt site with the Nuxt i18n module and the Prismic module. It seems to build fine and run fine, although I've still not tried the "preview" feature, except when I do a dev or production build, I get this warning from Nuxt:

> WARN [@nuxtjs/i18n] Couldn't read page component file (ENOENT: no such file or directory, open '/site-path/.nuxt/prismic/pages/preview.vue')

If I run `generate` and see a list of the routes it builds, I see this:

```auto
ℹ Generating pages 22:56:40
✔ Generated route "/fr" 22:56:42
✔ Generated route "/preview" 22:56:42
✔ Generated route "/en" 22:56:42
✔ Generated route "/fr/preview" 22:56:42
✔ Generated route "/en/preview" 22:56:42
✔ Generated route "/" 22:56:42
✔ Generated route "/fr/test" 22:56:44
✔ Generated route "/test" 22:56:44
✔ Generated route "/en/test"   

```

I suppose the preview file may not be found because i18n is forcing this route parameter of `/en` or `/fr`

My i18n module config is:

```auto
    // i18n module configuration: https://i18n.nuxtjs.org/setup
    i18n: {
        locales: ['en', 'fr'],
        defaultLocale: 'en',
        // add /en/ URL prefix
        strategy: 'prefix',
    },

```

Is this something I can fix in the configuration? I will soon want to use the Preview feature.

---

<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:** [September 24, 2021, 1:02pm UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/5 "2021-09-24T13:02:01Z")

</div>

Hi Duncan,

You should be able to ignore this route in your `i18n` setup as follows:

> **[Routing](https://i18n.nuxtjs.org/routing/#modules-configuration-1)**
>
> \*\*@nuxtjs/i18n\*\* overrides Nuxt default routes to add locale prefixes to every URL (except in no\_prefix strategy).

Let me know if this helps.

Thanks.

---

<div class="post-metadata">

**Author:** ![busted\_github\_sso](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@busted\_github\_sso](https://community.prismic.io/u/busted_github_sso)\
**Post date:** [September 24, 2021, 4:33pm UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/6 "2021-09-24T16:33:11Z")

</div>

Would that be just the "/preview" route with no locale prefix that I want to ignore?

---

<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:** [September 27, 2021, 8:39am UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/7 "2021-09-27T08:39:17Z")

</div>

Hey Duncan,

I'm not sure, I've never used this plugin, but from the docs it seems like that's what is needed. So something like:

```auto
['@nuxtjs/i18n', {
  parsePages: false,
  pages: {
    preview: false
  }
}]

```

Thanks.

---

<div class="post-metadata">

**Author:** ![busted\_github\_sso](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@busted\_github\_sso](https://community.prismic.io/u/busted_github_sso)\
**Post date:** [September 29, 2021, 7:20pm UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/8 "2021-09-29T19:20:41Z")

</div>

Thanks, Phil. I wasn't sure about the consequences of disabling `parsePages`, but it looks like that fixed the build warning, and the app still works as expected 🙂

---

<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:** [September 30, 2021, 7:21pm UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/9 "2021-09-30T19:21:12Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<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, 3:24pm UTC](https://community.prismic.io/t/warning-from-i18n-module-about-preview-vue/7181/10 "2021-12-09T15:24:39Z")

</div>


