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

Getting an error with new v4.14.0 #4899

Closed
1 of 5 tasks
strebl opened this issue Oct 18, 2024 · 3 comments
Closed
1 of 5 tasks

Getting an error with new v4.14.0 #4899

strebl opened this issue Oct 18, 2024 · 3 comments

Comments

@strebl
Copy link

strebl commented Oct 18, 2024

What happened?

After upgrading, I'm getting following build error: ERROR Pre-transform error: Missing "./dist/locale/en.json" specifier in "@vee-validate/i18n" package.

That's my nuxt plugin:

// plugins/veeValidate.ts
import { defineRule, configure } from 'vee-validate'
import { required, email } from '@vee-validate/rules'
import { localize } from '@vee-validate/i18n'
import en from '@vee-validate/i18n/dist/locale/en.json'

export default defineNuxtPlugin(() => {
  defineRule('required', required)
  defineRule('email', email)

  configure({
    // controls if `blur` events should trigger validation with `handleChange` handler
    validateOnBlur: true,
    // controls if `change` events should trigger validation with `handleChange` handler
    validateOnChange: true,
    // controls if `input` events should trigger validation with `handleChange` handler
    validateOnInput: true,
    // controls if `update:modelValue` events should trigger validation with `handleChange` handler
    validateOnModelUpdate: true,

    generateMessage: localize({
      en,
    }),
  })
})

Reproduction steps

No response

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

Code of Conduct

@strebl strebl changed the title Getting Errror with new v4.14.0 Getting an error with new v4.14.0 Oct 18, 2024
@logaretm
Copy link
Owner

logaretm commented Oct 18, 2024

On it.

EDIT: Tagging a quick hot fix now.

@logaretm
Copy link
Owner

Fixed in v4.14.1

@strebl
Copy link
Author

strebl commented Oct 18, 2024

amazing, thanks!

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