Hi, I was using <validator.js> for mobile number c...
# help
a
Hi, I was using validator.js for mobile number checks. Unfortunately, this lib is lagging to merge in a lot of open PRs and a couple of them are relevant to my needs. So, I simply created a fork of this lib and set my package.json to refer to my git repo for installing this package. I did so by adding
"validator": "git+<https://github.com/ashishpandey001/validator.js#main>"
to my package.json. Unfortunately, I’m unable to import and use this lib in this way. Any ideas why and how could I approach solving this?
k
@Ashishkumar Pandey perhaps try it without the
git+
in front e.g.
"validator": "<https://github.com/ashishpandey001/validator.js#main>"
or use the tarball option
<https://github.com/ashishpandey001/validator.js/tarball/main>
both worked fine for me in a package.json file