vuelidate multiple error-labels
-
@dobromir Try to reinstall Quasar-CLI. Then do a
$ quasar init <folder-name> $ cd <folder-name> $ quasar dev
I suggest enabling vuei18n in the init of the project because this way you’ll have a setup identical to mine.
With this and the code I posted in https://forum.quasar-framework.org/post/10043 you’ll have a setup identical to mine
-
@reath - You forgot
yarn install
must be done too.Scott
-
@dobromir Another clue: yarn gives me this warning:
vuelidate-error-extractor@2.2.2" has unmet peer dependency "vue@^2.5.16".
-
that is fine, it works fine with any vue 2.x version. I had an old CLI version along with the new one I just had installed. Going to try to do things now
-
Found the issue. For some reason the bundled package for accessing deep object properties was returning undefined. Will fix it now and push a release.
-
OK, I was wrong. This is a Quasar CLI issue, rather then an issue with my plugin. Will make a PR to Quasar, see if it gets merged. Essentially you could try the not ESM build, so instead of what you had do this -
import VuelidateErrorExtractor from 'vuelidate-error-extractor/dist/vuelidate-error-extractor'
Problem comes from the fact. that there is a package, that uses an older version of a dependency the error extractor has. Because I do not bundle the deps in the ES module build, this happens. A properly configured webpack config should fix this
-
@reath I have made a PR to quasar cli that will fix the problem. Waiting on approval. Until then, tell me if the workaround above worked.
PR for reference - https://github.com/quasarframework/quasar-cli/pull/198
-
This post is deleted!
-
@reath said in vuelidate multiple error-labels:
but instead of the error message, below the input only ‘required’ or ‘minLength’ or ‘maxLength’ are displayed. In other words said, the keys are displayed, not the values (required: “Field {attribute} is required”)
I have the same problem. key instead of values. Did you resolve this problem ?
-
A fix has been merged. Please update your Quasar CLI.