Ask Your Question
4

When using sass with svelte, why am I encountering an error message stating that semicolons cannot be used in the indented syntax?

asked 2021-05-08 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-03-06 12:00:00 +0000

djk gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-05-08 11:00:00 +0000

Seen: 13 times

Last updated: Mar 06 '23