<===> unknown_scheme/input.scss
@use "scheme:bar";
<===> unknown_scheme/error
Error: Can't find stylesheet to import.
,
1 | @use "scheme:bar";
| ^^^^^^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> no_extension/input.scss
@use "other";
<===> no_extension/other
a {b: c}
<===> no_extension/error
Error: Can't find stylesheet to import.
,
1 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> missing/input.scss
@use "other";
<===> missing/error
Error: Can't find stylesheet to import.
,
1 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> dir_dot_scss/input.scss
@use "dir.scss";
<===> dir_dot_scss/dir.scss/index.scss
.foo {
a: b;
}
<===> dir_dot_scss/error
Error: Can't find stylesheet to import.
,
1 | @use "dir.scss";
| ^^^^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> conflict/partial/input.scss
// This import can't be resolved because it could refer to either the partial or
// the non-partial file.
@use "other";
<===> conflict/partial/_other.scss
a {partial: true}
<===> conflict/partial/other.scss
a {partial: false}
<===> conflict/partial/error
Error: It's not clear which file to import. Found:
_other.scss
other.scss
,
3 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 3:1 root stylesheet
<===>
================================================================================
<===> conflict/extension/sass_and_scss/input.scss
// This import can't be resolved because it could refer to either the ".sass" or
// ".scss" file.
@use "other";
<===> conflict/extension/sass_and_scss/other.sass
a
syntax: sass
<===> conflict/extension/sass_and_scss/other.scss
a {syntax: scss}
<===> conflict/extension/sass_and_scss/error
Error: It's not clear which file to import. Found:
other.sass
other.scss
,
3 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 3:1 root stylesheet
<===>
================================================================================
<===> conflict/all/input.scss
// This import can't be resolved because it has conflicting partials *and*
// conflicting extensions.
@use "other";
<===> conflict/all/other.sass
a
syntax: sass
partial: false
<===> conflict/all/other.scss
a {syntax: scss; partial: false}
<===> conflict/all/other.css
a {syntax: css; partial: false}
<===> conflict/all/_other.sass
a
syntax: sass
partial: true
<===> conflict/all/_other.scss
a {syntax: scss; partial: true}
<===> conflict/all/_other.css
a {syntax: css; partial: true}
<===> conflict/all/error
Error: It's not clear which file to import. Found:
_other.sass
other.sass
_other.scss
other.scss
,
3 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 3:1 root stylesheet
<===>
================================================================================
<===> conflict/index/input.scss
// This import can't be resolved because it could refer to either the partial or
// the non-partial index file.
@use "other";
<===> conflict/index/other/_index.scss
a {partial: true}
<===> conflict/index/other/index.scss
a {partial: false}
<===> conflict/index/error
Error: It's not clear which file to import. Found:
other/_index.scss
other/index.scss
,
3 | @use "other";
| ^^^^^^^^^^^^
'
input.scss 3:1 root stylesheet
<===>
================================================================================
<===> loop/use_self/input.scss
@use "input";
<===> loop/use_self/error
Error: Module loop: this module is already being loaded.
,
1 | @use "input";
| ^^^^^^^^^^^^
'
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> loop/use_to_use/input.scss
@use "other";
<===> loop/use_to_use/other.scss
@use "input";
<===> loop/use_to_use/error
Error: Module loop: this module is already being loaded.
,
1 | @use "input";
| ^^^^^^^^^^^^
'
other.scss 1:1 @use
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> loop/use_to_import/input.scss
@use "other";
<===> loop/use_to_import/other.scss
@import "input";
<===> loop/use_to_import/error
Error: This file is already being loaded.
,
1 | @import "input";
| ^^^^^^^
'
other.scss 1:9 @use
input.scss 1:1 root stylesheet
<===>
================================================================================
<===> loop/import_to_use/input.scss
@import "other";
<===> loop/import_to_use/other.scss
@use "input";
<===> loop/import_to_use/error
Error: Module loop: this module is already being loaded.
,
1 | @use "input";
| ^^^^^^^^^^^^
'
other.scss 1:1 @import
input.scss 1:9 root stylesheet
<===>
================================================================================
<===> conflicting_namespace/explicit/input.scss
@use "other1" as other;
@use "other2" as other;
<===> conflicting_namespace/explicit/other1.scss
<===> conflicting_namespace/explicit/other2.scss
<===> conflicting_namespace/explicit/error
Error: There's already a module with namespace "other".
,
1 | @use "other1" as other;
| ====================== original @use
2 | @use "other2" as other;
| ^^^^^^^^^^^^^^^^^^^^^^ new @use
'
input.scss 2:1 root stylesheet
<===>
================================================================================
<===> conflicting_namespace/implicit/input.scss
@use "dir1/other";
@use "dir2/other";
<===> conflicting_namespace/implicit/dir1/other.scss
<===> conflicting_namespace/implicit/dir2/other.scss
<===> conflicting_namespace/implicit/error
Error: There's already a module with namespace "other".
,
1 | @use "dir1/other";
| ================= original @use
2 | @use "dir2/other";
| ^^^^^^^^^^^^^^^^^ new @use
'
input.scss 2:1 root stylesheet
<===>
================================================================================
<===> conflicting_namespace/built_in/input.scss
// Regression test for sass/dart-sass#1047
@use "sass:math";
@use "sass:math";
<===> conflicting_namespace/built_in/error
Error: There's already a module with namespace "math".
,
2 | @use "sass:math";
| ================ original @use
3 | @use "sass:math";
| ^^^^^^^^^^^^^^^^ new @use
'
input.scss 3:1 root stylesheet
<===>
================================================================================
<===> conflicting_namespace/mixed/input.scss
@use "other";
@use "other2" as other;
<===> conflicting_namespace/mixed/other.scss
<===> conflicting_namespace/mixed/other2.scss
<===> conflicting_namespace/mixed/error
Error: There's already a module with namespace "other".
,
1 | @use "other";
| ============ original @use
2 | @use "other2" as other;
| ^^^^^^^^^^^^^^^^^^^^^^ new @use
'
input.scss 2:1 root stylesheet