I have an Express+React app and I use validator.js.
When I uglify my js with webpackUglifyJsPlugin, I see the following error:
This library (validator.js) validates strings only
Is it a plugin problem or I can fix it somehow?
Thanks, Alex A.
By validating strings only means that it requires you to pass a parameter as a String for it to be validated.
Eg
validator.isFloat("121.21"); // instead of
validator.isFloat(121.21);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.