Level 1
The problem seems to be in the app.js and imports:
app.js:
require('./bootstrap');
import ('./gallery');
If I change to dynamic imports:
import('./bootstrap');
import ('./gallery');
app.js starts executing but I get a new problem, gallery and vue stops working, Laravel mix generates two additional files:
js/resources_js_bootstrap_js.js
js/resources_js_gallery_js.js