intlify / nuxt3

Nuxt 3 Module for vue-i18n-next
MIT License
202 stars 19 forks source link

Module does not provide an export named 'vueI18n' #86

Closed Hardaker587 closed 2 years ago

Hardaker587 commented 2 years ago

Framework: Nuxt3 RC-8

Reproduction link: https://stackblitz.com/edit/intlify-nuxt3-minimal-reproduction

When running nuxt dev or nuxt build I am getting the following error:

ERROR  The requested module '@intlify/vite-plugin-vue-i18n' does not provide an export named 'vueI18n' 
import { vueI18n } from '@intlify/vite-plugin-vue-i18n';
^^^^^^^                                                            

This more than likely seems related to the version of @intlify/vite-plugin-vue-i18n because this all worked a few days ago, and is now unfortunately breaking all builds.

robthepaper commented 2 years ago

Hi, same here. I don't get the message on anotehr project where @intlify/vue-i18n-loader version is 9.2.0-beta.40 though.

I have this error with version 9.3.0-beta.1

when I list dependencies of @intlify/nuxt3@0.2.3 I have : ├─ @intlify/shared@beta │ ├─ @intlify/vite-plugin-vue-i18n@next │ ├─ @intlify/vue-i18n-loader@next

is it possible maybe to install a specific version instead of the latest?

Hardaker587 commented 2 years ago

I highly appreciate you fixing this so quickly!