I continue to get the VirtualSelect is not defined error
I am compiling with Laravel Mix and can confirm both virtual-select.css and virtual-select.js files are in my app.css and app.js
// where exactly should this code go?
// I have it under app.js like so
<script>
VirtualSelect.init({
ele: '#sample-select',
options: [
{ label: 'Options 1', value: '1' },
{ label: 'Options 2', value: '2' },
{ label: 'Options 3', value: '3' },
],
});
</script>
Literally 10 seconds after I posting this I realised my app.js file was in the head with the defer attribute. I placed it below the content near the closing body tag and hey presto it worked :p
I have followed the Getting Started instructions
And
<div id="sample-select"></div>
I continue to get the
VirtualSelect is not defined
errorI am compiling with Laravel Mix and can confirm both virtual-select.css and virtual-select.js files are in my app.css and app.js