It looks like the JavaScript files are not being loaded because they are not being properly referenced in the HTML template. Make sure that the paths to the JavaScript files are correct and that they are being referenced in the correct order.
Also, try removing the body: true property from the script tags in the head section of the nuxt.config.ts file. This property is used to indicate that the script should be loaded in the body of the HTML document, but it may be causing issues with the loading of the scripts.
Here is an updated version of the nuxt.config.ts file without the body: true property:
export default defineNuxtConfig({
css: [
'@/assets/vendor/aos/aos.css',
'@/assets/vendor/bootstrap/css/bootstrap.min.css',
'@/assets/vendor/bootstrap-icons/bootstrap-icons.css',
'@/assets/vendor/boxicons/css/boxicons.min.css',
'@/assets/vendor/glightbox/css/glightbox.min.css',
'@/assets/vendor/swiper/swiper-bundle.min.css',
'@/assets/css/style.css'
],
head: {
meta: [
{ charset: 'utf-8' },
{ 'http-equiv': 'pragma', content: 'no-cache' },
{ 'http-equiv': 'cache-control', content: 'no-cache' },
{ 'http-equiv': 'expires', content: '0' },
{ content: 'telephone=no', name: 'format-detection' }
],
script: [
{ type: 'text/javascript', src: '~/assets/vendor/purecounter/purecounter_vanilla.js' },
{ type: 'text/javascript', src: '~/assets/vendor/aos/aos.js' },
{ type: 'text/javascript', src: '~/assets/vendor/bootstrap/js/bootstrap.bundle.min.js' },
{ type: 'text/javascript', src: '~/assets/vendor/glightbox/js/glightbox.min.js' },
{ type: 'text/javascript', src: '~/assets/vendor/isotope-layout/isotope.pkgd.min.js' },
{ type: 'text/javascript', src: '~/assets/vendor/swiper/swiper-bundle.min.js' },
{ type: 'text/javascript', src: '~/assets/vendor/typed.js/typed.min.js' },
{ type: 'text/javascript', src: '~/assets/vendor/waypoints/noframework.waypoints.js' },
{ type: 'text/javascript', src: '~/assets/js/main.js' },
{ children: "console.log('Hello, world!');" }
]
}
})