Closed udit-001 closed 2 months ago
What version of the plugin are you using?
I'm using v23.0.4
Hmm that's strange. Do you see the same issue on the demo site?
No, I don't see that error on the demo site.
Can I use build/js/intlTelInputWithUtils.js
instead of using a separate utils file?
Can I use build/js/intlTelInputWithUtils.js instead of using a separate utils file?
You can if you don't mind the filesize, as the utils script is aprx 260kb.
Or if you want to try and figure out this issue, it would help if you could find the minimal set of code that reproduces the problem and put that in a CodePen, so I can take a look. Here is an example pen with the plugin up and running - feel free to fork this if it helps.
Thank you for your help, the issue has been resolved.
It appears that the utils file was being included as a script tag as well. I was attempting to integrate this with Django, and there was a slight configuration issue, which caused the error to occur.
Plugin version
v23.0.4
Expected behaviour
No errors should be there
Actual behaviour
Getting the following errors in browser console:
Brave Version 1.65.132 Chromium: 124.0.6367.202
Firefox 125.0.3
Initialisation options
I am not using webpack or any other bundler, I am using vanilla JavaScript and specifying the
utilsScript
as follows:Here's the script for reference:
Comments
Should I include utils script in a different way in my project?