international-phone-number
international-phone-number copied to clipboard
utils.js is not found on production when using gulp:serve:dist
I was using this library "international-phone-number": "^0.0.16" and woking fine on localhost but when i run with production serve i.e. using gulp serve:dist
, it gives 404 (Not Found) errors for below
http://localhost:3000/img/flags.png
and
http://localhost:3000/bower_components/intl-tel-input/lib/libphonenumber/build/utils.js
it was said here that it has been fixed but still error persist.
@zymr-keshav :
I had the same issue and after checking this library source code, I came out with the solution as below:
For the utils.js not found issue, I think you need to use util-scripts option to indicate the path to utils.js file by yourself
util-scripts="path/to/file"
For the issue of flags.png, my solution is override class .iti-flag with your path to the file.
.iti-flag{ background:url("path/to/your flag file/flags.png")} }
This is just a work around.