Bootstrap JS not loading correctly

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

sorry guys, keep doing the same stupid mistake :frowning:
keep ending in v.5 documentation while searching but I am still using non beta 4.6.1 :confused:
embarassing :frowning:

This topic was automatically closed after 42 days. New replies are no longer allowed.