logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.79k stars 1.26k forks source link

Unhandled Error in normalizeFormPath Function - TypeError in vee-validate.js #4600

Closed MerzoukeMansouri closed 10 months ago

MerzoukeMansouri commented 10 months ago

What happened?

I encountered an unhandled error during a test run, and it appears to be related to a TypeError in the normalizeFormPath function within the vee-validate.js file. The error message points to line 66, character 30, indicating an issue with trying to read properties of an undefined value, specifically using the 'split' method.

Reproduction steps

  1. Run vitest run --coverage
  2. Expected Behavior: The test should pass without any unhandled errors, ensuring accurate and reliable test results.

Actual Behavior: The test run catches an unhandled error with the following details:

image

Version of vee-validate: 4.12.2 I appreciate your assistance in resolving this issue and ensuring the stability of the vee-validate library. If more information is needed, feel free to ask.Observe the error message referencing normalizeFormPath in vee-validate.js.

Version

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

What browsers are you seeing the problem on?

Relevant log output

No response

Demo link

Errors occurs in my github action CI.

Code of Conduct

logaretm commented 10 months ago

This may mean you did not pass a name to the useField or Field component. Can you reproduce it on a sample?

logaretm commented 10 months ago

Will re-open once you do.