Logo

dev-resources.site

for different kinds of informations.

Nuxt3 : limitation on Layers & Modules

Published at
3/31/2024
Categories
nuxt
nuxt3
Author
v0id-4lps
Categories
2 categories in total
nuxt
open
nuxt3
open
Author
9 person written this
v0id-4lps
open
Nuxt3 : limitation on Layers & Modules

Nuxt is a good framework.

I've been using it for a few months now and it's good, but I found some limitations that were annoying for a professional use.

Layers & modules

Nuxt's Layers and modules allows you to split your code as reusable parts.

  • a layer for your shared UI components
  • a layer for your auth system
  • ...

But each layer can requires specific packages for it's business.

Limitation

If your layers/modules requires dependencies to work, Nuxt will not install these dependencies on npm install or npm build on your projects and you won't be able to run em.

Documentation is very poor and unclear about theses two features.

Workaround

I tested a lot of tricks, asked the community but there is no workaround for now except manually install your layers'/modules' dependencies into each one of your projects.

It's very limitative and annoying if you want to use your layers/modules on several projects and this make it loses all the interest of these features: easy reusability.

In my opinion, layers and modules are most of time useless in this state.

Keep this in mind before starting a big and professional project with it. 😣

nuxt3 Article's
30 articles in total
Favicon
Renderización Dinámica de Componentes en Vue 3 y Nuxt 3: Guía Práctica y Caso Real
Favicon
Nuxt3 CSR Background Image Lazy loading
Favicon
DartsMash: a platform for darts enthusiasts
Favicon
Nuxt3 : limitation on Layers & Modules
Favicon
Using postgresql with nuxt3 by ORM(sequelize)
Favicon
Nuxt3 : API error handling
Favicon
Nuxt Icon
Favicon
Integrating Nuxt 3 with Recaptcha v3 for Token Handling 🤖🔐
Favicon
Nuxt 3 Starter
Favicon
Nuxt 3 Builder: A Tailored Editor for Developers
Favicon
Build an X clone w/ Nuxt UI
Favicon
Nuxt3 Form with Feedback
Favicon
Custom 404 Page in Nuxt
Favicon
Nuxt 3 authentication with pinia
Favicon
Nuxt 3, UnoCSS, and Preset rem to px
Favicon
Configuração e instalação do Nuxt 3
Favicon
The DevOnly component in Nuxt 3: A developer's best friend
Favicon
Storyblok Nuxt 3 news 🗞
Favicon
Implementing OpenID Connect (OIDC) Authentication with Nuxt 3
Favicon
Authentication in Nuxt 3
Favicon
Adding ESLint and Prettier to Nuxt 3 ✨ (2024)
Favicon
API Management in Nuxt 3 with TypeScript
Favicon
Docker and Nuxt 3
Favicon
Pinia and Nuxt 3
Favicon
Adding Pinia to Nuxt 3 🍍 (2023)
Favicon
Adding Vitest to Nuxt 3 ⚡ (2023)
Favicon
Adding Tailwind CSS to Nuxt 3 🍃 (2023)
Favicon
How I set up eslint in my projects
Favicon
How to create and minify Vuetify 3 Nuxt 3 project bundle
Favicon
Build an Intercom clone in Nuxt.js - Part Two

Featured ones: