Nuxt not automatically importing components from nested directory

Since Nuxt 2.15.0, components changed in the way they work as stated in this github issue. Depending of you structure and how you want to handle your organization, you may edit your configuration accordingly to the migration guide available here: https://github.com/nuxt/components#v1-to-v2 Or you could also simply set the pathPrefix option to have all your components … Read more

How to add a 3rd party script code into Nuxt?

How to load external JavaScript scripts If you are planning to import a .js file, I do recommend this article: https://vueschool.io/articles/vuejs-tutorials/how-to-load-third-party-scripts-in-nuxt-js/ Use inject to add an NPM package to Nuxt’s context, this blog post by Alexander explains it even further Josh Deltener has a great article on how to import it properly too (with various … Read more