Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
@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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!