Open volarname opened 2 months ago
Thank you for your reporting! This issue is not vue-i18n, unplugin-vue-i18n so I'll move this issue
I'm also affected by this issue and looked into it. The dependency on unplugin is set to ^1.1.0
but the createVitePlugin
(and other createXPlugin) functions were added in version 1.3.2 (https://github.com/unjs/unplugin/blob/main/CHANGELOG.md#132-2023-07-03). Manually adding a newer version of unplugin to my project fixes the issue. So I guess the fix here would be to bump the requires version in unplugin-vue-i18n?
@nielsvanvelzen how are you manually adding a newer version of unplugin?
Just install it as an additional dependency in your project: npm i -D unplugin@latest
.
@nielsvanvelzen thx, i can confirm adding newer version of unplugin
solved the issue, bump up the version in unplugin-vue-i18n package should fix this issue
This was introduced in d0064c84a570e3133302803e015ae2552ca2a82a, specifically this line of the diff, released in 5.0.0-beta.5
. 5.0.0-beta.4
does not exhibit this issue.
Just install it as an additional dependency in your project:
npm i -D unplugin@latest
.
Thanks, that did help with type errors in the console on startup.
I was still getting a strange type error where $t
wasn't recognized in VSCode but the solution to that was to
package-lock.json
rm -rf node_modules
npm install
npm install vue-tsc@latest
Reporting a bug?
Expected behavior
project should build without error
Reproduction
https://github.com/anzusystems/common-admin/tree/i18n-bug
clone i18n-bug branch run
yarn build
System Info
Screenshot
No response
Additional context
No response
Validations