Open
Description
Is this a bug report?
Maybe not
Which terms did you search for in User Guide?
This is related to my previous answer : #1333 (comment)
Steps to Reproduce
I have a projet which imports an other "private" package. I am using sass in both packages. The private package is passed to babel only (not node-sass).
I have something like the following in the private module :
// src/component/module.js
import '../styles/module.scss';
// src/styles/module.scss
.module {
background: url('../images/module.jpg');
}
Then in the main project, if i do this :
// src/index.js
import '@my/module/dist/component/module.js';
everything works fine, but if i do "the same thing" from my sass file :
// src/main.scss
@import '@my/module/dist/styles/module.scss';
i obtain the following error :
Module not found: You attempted to import ../images/module.jpg which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
Expected Behavior
Both import should fail or success ?
To be able to split my project, i would like to be able to import other packages components and sass files.
Actual Behavior
Importing from sass from sass fails but importing sass from js works.