Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
@forward must come first but thinks it isn't

I have a .sass file defined like this:

@forward './settings'
@use './generic'
@use './elements'
@use './utilities'

When I try and load the app (a Vue3 + Vuetify3 + Vite stack) and run via Vite, I get the following error:

3:25:20 PM [vite] Internal server error: @forward rules must be written before any other rules.
  ╷
2 │ @forward './settings'
  │ ^^^^^^^^^^^^^^^^^^^^^
  ╵
  node_modules/vuetify/lib/styles/main.sass 2:1  root stylesheet

Note that in the corresponding sass file, the @forward directive is the very first line. Why does vite think it's the second line? How do I debug what the file is being masticated into, since it seems clear that something is being inserted automatically into the first line that causes the @forward error?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Problem is with variables configuration in vite.config.js, maybe change in latest 3.0.0-alpha.11 vuetify template generation

just comment lines in preprocessorOptions

preprocessorOptions: {
  // sass: { additionalData: `@import ${srcPath}\n` },
  // scss: { additionalData: `@import ${srcPath};\n` },
},```
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda