Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This error message is encountered because Sass has two syntaxes: Sass (which uses indentation) and SCSS (which uses curly braces and semicolons). Svelte uses the SCSS syntax by default, which means that semicolons are expected. If you try to use the indented syntax with semicolons, Sass will not recognize it and will throw an error. To fix this error, you should switch to using the SCSS syntax in your Svelte project.