Closed JeromeLin closed 2 years ago
I have a monorepo project,using @import to import a module URL, have some error when scss compiling
@import
scss file
@import '@zarm-design/bem/sass';
gulpfile.js
import dartSass from 'sass'; import gulpSass from 'gulp-sass'; const sass = gulpSass(dartSass); gulp.task('sass', () => { return gulp .src(DIR.sass) .pipe( sass({ includePaths: ['node_modules'], }).on('error', sass.logError), ) .pipe(gulp.dest(outDir)); });
error
Error in plugin "sass" Message: src/style/core/mixins/index.scss Error: Can't find stylesheet to import. ╷ 1 │ @import '@zarm-design/bem/sass'; │ ^^^^^^^^^^^^^^^^^^^^^^^^
Gulp sass simply passes the sass options to the sass engine. Double check you're includePaths is correct.
includePaths
I have a monorepo project,using
@import
to import a module URL, have some error when scss compilingscss file
gulpfile.js
error