standalone-block-editor icon indicating copy to clipboard operation
standalone-block-editor copied to clipboard

editor-styles.scss fails to import

Open rmccue opened this issue 4 years ago • 2 comments

Hi! After pulling down the repo, running yarn install, and then yarn run build, I get the following error:

ERROR in ./src/styles.scss
Module build failed (from ./node_modules/@wordpress/scripts/node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/@wordpress/scripts/node_modules/sass-loader/dist/cjs.js):
SassError: File to import not found or unreadable: ~@wordpress/editor/src/editor-styles.scss.
        on line 49 of [...]/standalone-block-editor/src/styles.scss
>>      @import "~@wordpress/editor/src/editor-styles.scss";

This file was deleted in https://github.com/WordPress/gutenberg/pull/30034

rmccue avatar Apr 07 '21 21:04 rmccue

I can't say i've tried using yarn. Gutenberg also does not use yarn. Did you get to the bottom of this?

getdave avatar Oct 08 '21 13:10 getdave

I'm having the same problem using npm. It's trying to find an editor-styles-scss file but there is only a styles.scss file inside that folder...

davidnb3 avatar Dec 29 '21 10:12 davidnb3