Trouble when setting up jQuery when installed as a NPM dependency in Laravel app for making it available on global scope,by bundling assets with Vite
I’ve been modularizing my ‘Create’ and ‘Edit’ Blade views correspondent to a feature of my Laravel app, by splitting their code into different files. I’ve done this as there are different sections for creating or editing a database register for it, with different forms on each one. Also, in one of these sections, I’ve decided to create separated files: one for coding the form itself, and another one for its behaivour, and so manipulating the DOM correspondent to that form.