Analyzing nuxt fails
andorfermichael opened this issue · comments
Michael Andorfer commented
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
}
}
})
Michael Andorfer commented
somehow this issue resolved, no idea why, maybe cache or something