Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyzing nuxt fails #92

Closed
andorfermichael opened this issue Sep 19, 2022 · 1 comment
Closed

Analyzing nuxt fails #92

andorfermichael opened this issue Sep 19, 2022 · 1 comment

Comments

@andorfermichael
Copy link

When running nuxt3's bundle analyzer via npx nuxi analyze it throws the following error:

 ERROR  [vite:load-fallback] Could not load vue-i18n/dist/vue-i18n.runtime.esm-bundler.js (imported by virtual:nuxt:/home/andorfermichael/Documents/software-projects/frontend3/.nuxt/plugin.mjs): ENOENT: no such file or directory, open 'vue-i18n/dist/vue-i18n.runtime.esm-bundler.js'


 ERROR  Could not load vue-i18n/dist/vue-i18n.runtime.esm-bundler.js (imported by virtual:nuxt:/home/andorfermichael/Documents/software-projects/frontend3/.nuxt/plugin.mjs): ENOENT: no such file or directory, open 'vue-i18n/dist/vue-i18n.runtime.esm-bundler.js'

Nuxt Config:

import { defineNuxtConfig } from 'nuxt'

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
    // Modules for dev and build: https://v3.nuxtjs.org/api/configuration/nuxt.config#modules
    modules: [
        // https://vue-i18n.intlify.dev/guide/integrations/nuxt3.html#setup-vue-i18n-on-nuxt-3-application
        '@intlify/nuxt3'
    ],

    // i18n module: https://github.com/intlify/nuxt3
    intlify: {
        localeDir: 'locales',
        vueI18n: {
            locale: 'en',
            fallbackLocale: 'en',
            availableLocales: ['en'],
            sync: true
        }
    }
})
@andorfermichael
Copy link
Author

somehow this issue resolved, no idea why, maybe cache or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant