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

使用 @voerkai18n/vue 报错 #71

Open
redbin1024 opened this issue Dec 1, 2024 · 2 comments
Open

使用 @voerkai18n/vue 报错 #71

redbin1024 opened this issue Dec 1, 2024 · 2 comments

Comments

@redbin1024
Copy link

redbin1024 commented Dec 1, 2024

import i18nPlugin from '@voerkai18n/vue'; 本地运行使用这种方式引入才行
import { i18nPlugin } from '@voerkai18n/vue'; 打包却只能用第二种方式引入

本地使用 import { i18nPlugin } 方式 报一下错误
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@voerkai18n_vue.js?v=6b792202' does not provide an export named 'i18nPlugin' (at main.js:34:10)

@zhangfisher
Copy link
Owner

zhangfisher commented Dec 2, 2024

应该是使用import { i18nPlugin } from '@voerkai18n/vue'

你所说的本地运行指的是vite dev

@redbin1024
Copy link
Author

是的, 在 2.1.10 有这个问题,昨天我更新 2.1.13 就没有问题了,使用的技术环境是
vite脚手架
vue3 框架
pnpm 安装

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

2 participants