Cannot read property 'valHooks' of undefined
See original GitHub issueHello,
I installed the plugin throw npm and added the html tags to the header:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.1/css/bootstrap-select.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.1/js/bootstrap-select.min.js"></script>
However I get the error:
Uncaught TypeError: Cannot read property 'valHooks' of undefined
at bootstrap-select.min.js:7
at bootstrap-select.min.js:8
at bootstrap-select.min.js:7
at bootstrap-select.min.js:7
does anybody know about this?
Regards.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Uncaught TypeError: Cannot read property '3' - Stack Overflow
Hi Drifter I have tried your example with following scripts and css. I didn't get any error. Hope there are some version compatibility ......
Read more >Problem with select input - Material Design for Bootstrap
Hey Guys,i've created a material select like in the docs but the menu don't open. I only get this error message: Uncaught TypeError:...
Read more >Uncaught TypeError Cannot read property fn of undefined
I am using jquery, backbonejs, underscorejs, and bootstrap for my project and I sometimes get this error in chrome.
Read more >Uncaught TypeError: Cannot read properties of undefined ...
Hello. After the latest updates, I have this problem in the console. `Uncaught TypeError: Cannot read properties of undefined (reading 'hooks')
Read more >bootstrap-select - npm
The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What version of jQuery are you using? You need to load jQuery before bootstrap-select.min.js.
I have solve the issue on my side by adding defer into the script.
I hope this helps you all to solve the issue!