Sergio Salami
KPCKevin Powell - Community
•Created by Sergio Salami on 1/29/2024 in #front-end
Sass Error: Module loop: this module is already being loaded.
- default.scss <--
@use "base";
;
- base/_index.scss <-- @use "fonts";
- fonts/_index.scss <-- @use "../../abstracts";
- tools/_index.scss <-- @forward "functions";
- functions/_index.scss <-- @forward "gutter";
- _gutter.scss <-- @use "../../abstracts" as *;
- folder "abstracts" contains variables and settings of all sorts (e.g. breakpoints, colors, globals, spacings, typography, etc.)
- folder "tools" contains functions and mixins (possibly require variables defined in abstracts)
- both abstracts and tools will be used project wide (e.g. accessing color variables or use breakpoint mixin in sass components)
- folder "base" contains styles for pure html elements (e.g. html, body, ul, h1, etc.)
I need to access variables from abstracts in multiple places.
Also, I want to access variables within abstractions itself like use variable x in abstraction a from abstraction b.
How does this work without running into the module loop problem?2 replies
KPCKevin Powell - Community
•Created by Sergio Salami on 4/9/2023 in #front-end
Charts with JavaScript
7 replies