I have a file called _breakpoints.scss located at... ./src/styles/_breakpoints.scss
It contains the variable
$breakpoints: (
"xs": 0,
"s": 480px,
"md": 720px,
"lg": 960px,
"xl": 1200px,
);
I am importing this file into a component located at
./src/components/FixedTopBar/TopBar.astro
I import it as the first line of the <style lang="scss"> tag.
---
---
<!-- HTML Stuff -->
<style lang="scss">
@use '../../styles/breakpoints' as bp;
.some_class {
max-width: map-get(bp.breakpoints, "lg");
</style
I am getting the following error
[sass] Expected digit.
╷
9 │ background-color: $bp.my-color;
│ ^
╵
src\components\FixedTopBar\TopBar.astro 9:29 root stylesheet
I have run npm i -D sass as suggested. I would like to know what the error is and how to find a fix.