expected }
but instead the file ends
#4141
-
✖ CSS Formatter Error: Expected '}' but File EndsIssue SummaryWhen working with
This error often occurs when using directives like Environment Details
Example Code Causing the ErrorIn the following CSS snippet used within Modul, the formatter reports an error: .excalidraw__canvas {
@apply rounded-3xl
}
.excalidraw {
@apply overflow-visible !important;
} Error Message:
Root CauseThe error is misleading and does not point directly to the actual issue. The real problem is a missing semicolon ( SolutionEnsure that every .excalidraw__canvas {
@apply rounded-3xl;
}
.excalidraw {
@apply overflow-visible !important;
} Additional Notes
ConclusionIf you encounter the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
SolutionEnsure that every |
Beta Was this translation helpful? Give feedback.
Solution
Ensure that every
@apply
andtheme()
directive line ends with a semicolon;
. Here's the corrected version of the example: