Description
Describe the Bug
I'm using fourseven:scss
with internal Meteor packages, and since version 5.0.0-alpha.1
, I've encountered the following problem:
While building for web.browser:
/packages/testlocal_scss/client/style_test.scss: Scss compiler client/style_test.scss: no such file or directory
To Reproduce
I’ve created a project to reproduce this behavior, available here: https://github.com/LionelGuerin/meteor_forkedseven_scss
In the folder sass_tests/sass, I'm using fourseven:[email protected]
.
To reproduce the error, run the following commands:
git clone [email protected]:LionelGuerin/meteor_forkedseven_scss.git
cd meteor_forkedseven_scss/sass_tests/sass
meteor --port 4000
Expected behavior
In the folder sass_tests/sass_forked, there is another Meteor app that uses a slightly modified version of fourseven:[email protected].
This custom package is located in:
sass_tests/sass_forked/packages/forkedseven_scss
The only change made is on line 183, where filePath is replaced in the compileAsync function:
output = await sass.compileAsync(inputFile.getSourceRoot()+ "/" + inputFile.getPathInPackage(), options);
// output = await sass.compileAsync(inputFile.getPathInPackage(), options);
I’m pretty sure this isn’t the correct way to do it, but I don’t know how to fix it properly (and that's why I haven’t made a PR).
Thank you in advance for your time and help ! :)