You suggestion didn't work. I feel I did it all wrong way.
I have 'app.js' and 'bootstrap.js' that were copied from mentioned project. Not sure I needed them.
Also I just have tried to install 'bootstrap' and 'jquery' as npm packages in my project.
I've no idea which bootstrap is used, if any at all.
@sband If you're using node js you can just import the js files in a main js file that you then add as script to the index. That's a cleaner approach than adding all scripts separately to the index.
I thought you were using laravel that's why I used the bootstrap js file as example.
But its not the same as the bootstrap css package, that you've propably installed now.
You're using Vue as front-end/client side so than you can add jquery to the vue mainjs file.
Alternatively you can create a bootstrap.js file, import jquery and import the bootstrap file in the main.js file.
By using this approach you can than later use the bootstrap file to add more imports while keeping the main js file cleaner.
@gych not having solved initial issue with all this (made it cleaner though) I became even more confused
why should i name file as bootstrap.js, it's just a container for other files so i can name it differently (?)
why i installed bootstrap as npm package and what should i do with this? Do I need it?
why i installed jquery as npm package (I had jquery-3.7.1.js file before manually copied into my project with <script..> reference that worked).
Having installed it as a npm package should i still reference it somehow and remove that one file?
You can just remove the package with npm uninstall, you don't need this. The package you've installed is propably CSS Bootstrap. Its something completely different.
If you've installed jquery as package you can either require or import it