intlify / bundle-tools

bundling for intlify i18n tools
MIT License
232 stars 37 forks source link

failed to load config vite.config.js #284

Closed HuangKaiSong closed 10 months ago

HuangKaiSong commented 11 months ago

Reporting a bug?

I followed the documentation to import and use @intlify/unplugin-vue-i18n But the use of the development server before I started threw a fatal error image

Expected behavior

Hope to be up and running

Reproduction

https://codesandbox.io/p/sandbox/mutable-paper-pw6y9g

Issue Package

unplugin-vue-i18n

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (4) x64 Intel(R) Core(TM) i3-9100 CPU @ 3.60GHz
    Memory: 1.28 GB / 7.85 GB
  Binaries:
    Node: 18.16.0 - D:\nvm\nodejs\node.EXE
    npm: 9.5.1 - D:\nvm\nodejs\npm.CMD
    pnpm: 8.6.10 - D:\nvm\nodejs\pnpm.CMD
  Browsers:
    Chrome: 115.0.5790.171
    Edge: Spartan (44.22621.1992.0), Chromium (115.0.1901.203)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vite: ^4.3.2 => 4.3.8
    vue: ^3.2.47 => 3.3.4
    vue-i18n: ^9.2.2 => 9.2.2

Screenshot

No response

Additional context

No response

Validations

kazupon commented 10 months ago

You need import as import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite', not import VueI18nPlugin from '@intlify/unplugin-vue-i18n'

Thanks!