Compile code error


#1

https://www.codecademy.com/en/courses/learn-sass/lessons/hello-sass/exercises/compile-sass?action=resume

Just get this all the time after entering the SASS command into the terminal.

Error: Invalid CSS after "@import ": expected file to import (string or url()), was "{"
on line 1 of main.scss

sass main.scss main.css
Any idea what I'm doing wrong?


#2

Hello @garynortheast,

Can you please post your CSS code over here. Thanks


#3

Hi Gary,

Did you somehow get a { on line 1 of your main.scss file?

You can look under "Get Help" for the "I want to restart this exercise" option. That will put the default files back to the way they should be.


#4

@garynortheast
Please read
http://sass-lang.com/guide


#5

Thanks for your replies. I have it working now after resetting the exercise and starting again.


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.