How to update validator package inside core ? #1327
-
When using validator I get typescript error on range and my runtime error looks like this: Validator_1.rules.range is not a function I expect this is because the range rule is not defined. my package.json:
and node_modules package.json from core:
and node_modules adonis validator package.json:
The version is up-to-date with: https://github.com/adonisjs/validator but the node_modules/@adonisjs/validator/build/adonis-typings/validator.d.ts is different from the one on github: node_modules adonis-typings:
i tried updating the node modules with npm update, deleted my node_modules and installed them back but in vain. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You should only update Update The validator has been updated on this commit. |
Beta Was this translation helpful? Give feedback.
You should only update
@adonisjs/core
, so the validator will be updated automatically.Update
@adonisjs/core
from5.0.0-preview-rc-1.9
to5.0.0-preview-rc-1.11
.The validator has been updated on this commit.