good morning everyone.
I am trying to use some native JS bootstrap functions but it seems JS is not loaded correctly.
MAIN.js
// Import everything from autoload
import './autoload/**/*'
FOLDER
/autoload/
|– _bootstrap.js
_bootstrap.js
import 'bootstrap';
Is this not enough to have then JS calls working properly?
i.e. (single.js)
new bootstrap.Modal(document.getElementById('myModal'));
(no errors, BUT no modal opening, or in other cases, no form validation etc.)
EDIT: this it not working with data-attr too
what am I missing?
ty