My script tags are not working

for example I take "Swup is not defined " error in this code and same thing happened Barba.js why this happened

Try relative path.

"./node_modules/swup/dist/swup.min.js"

Relative path should work, but you could use “CDN” as well. I think that would make your life easier.