Skip to content

File to import not found or unreadable: /**/*.scss. #192

Open
@zakaria-chahboun

Description

@zakaria-chahboun

Describe the bug
when i trying to import all SCSS files in a sub-folder

@import 'components/**/*.scss';

i get this error message :
File to import not found or unreadable: components/**/*.scss.

i tried the same example with glup and it works fine.
The problem happen just when i tried to import all files .. because when i import a single element of scss it's works fine!
example: @import 'components/button';

i'm actually use sapper with rollup with these configurations:

...

import sveltePreprocess from 'svelte-preprocess';
const preprocess = sveltePreprocess({
  scss: {
    includePaths: ['src'],
  },
  postcss: {
    plugins: [require('autoprefixer')],
  },
});

...

client:{
    svelte({
      dev,
      hydratable: true,
      emitCss: true,
      preprocess // my sass
}),
}

...

server:{
   svelte({
      generate: 'ssr',
      dev,
      preprocess // my sass
}),
}

  • Os: Linux openSUSE Tumbleweed

  • svelte-preprocess: "^3.9.10"

  • autoprefixer: "^9.8.4"

  • Rollup

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions