Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

130
Visualizações
@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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda