Incorrect imports in main.scss (?)
Yeah there is an attempt to solve it here https://github.com/artf/grapesjs/pull/2859
Read full answer below ↓Question
Version: ^0.16.17 Are you able to reproduce the bug from the demo? [ ] Yes [X] No
According to tutorial i want to override styles for my editor. https://grapesjs.com/docs/getting-started.html#theming But I cannot compile my project due to an error in main.scss:
^
Can't find stylesheet to import.
╷
2 │ @import "../../../node_modules/spectrum-colorpicker/spectrum";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/grapesjs/src/styles/scss/main.scss 2:9 @import
libs/content-builder/assets/scss/layout-editor.scss 2:9 @import
stdin 1:9 root stylesheet
Are these imports correct? grapesjs/src/styles/scss/main.scss
@import "../../../node_modules/spectrum-colorpicker/spectrum";
@import "../../../node_modules/codemirror/lib/codemirror";
@import "../../../node_modules/codemirror/theme/hopscotch";
....
I think they should look like this:
@import "~spectrum-colorpicker/spectrum";
@import "~codemirror/lib/codemirror";
@import "~codemirror/theme/hopscotch";
Answers (1)
Yeah there is an attempt to solve it here https://github.com/artf/grapesjs/pull/2859
Related Questions and Answers
Continue research with similar issue discussions.
Issue #5746
ColorPicker Offset incorrect when Panels are outside of Editor Container
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v122 Reproducible demo link https:/...
Issue #5408
main.scss is missing in 0.21.6
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 118 Reproducible demo link none De...
Issue #3181
SelectorManager not return a String but an Object
Version:0.16.30 Are you able to reproduce the bug from the demo? [1 ] Yes What is the expected behavior?* SelectorManager.getState() is sup...
Issue #2982
BUG: Executing editor.load(x) on x = editor.store() results in error.
Version: 0.16.18 Are you able to reproduce the bug from the demo? [X ] Yes [ ] No What is the expected behavior? I would expect that assets...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.