• Resolved kpdirection

    (@kpdirection)


    Installed Smush 3.7.2 in WordPress 5.5.3

    When I was about to commit the files to our git repo, I noticed that SCSS wasn’t being pre-processed correctly; app.css and common.css have errors at the top;
    app.css

    /* Error: Can't find stylesheet to import.
     *   ,
     * 8 | @import "~@wpmudev/shared-ui/scss/functions";
     *   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     *   '
     *   app.scss 8:9  root stylesheet */

    common.css

    /* Error: Can't find stylesheet to import.
     *   ,
     * 4 | @import "~@wpmudev/shared-ui/scss/functions";
     *   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     *   '
     *   modules/_media.scss 4:9  @import
     *   common.scss 4:9          root stylesheet */

    Smush still seems to work, but I can’t update a repo that has errors in the code. I tried completely removing the wp-smushit folder and reinstalling the plugin, but the behavior is the same.

    Note that my IDE (PHPStorm) automatically processes scss files, and doesn’t have any issues with other SCSS files in my projects.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SCSS Error’ is closed to new replies.