-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codesandbox not recognizing sass modules with @use when using dart-sass #4742
Comments
Hey! We currently do not support As soon as this is supported in Sorry for the issue |
Sadly, Is a migration to |
Could this be re-opened? node-sass is dead and not being able to use sass modules in a codesandbox gives me bad feels. |
Regarding @Donov4n's and @wesgro's comments,
@SaraVieira, you mentioned:
but is there a specific reason that sass compilations through node can't use
They also have a standalone executable to compile sass files:
|
@SaraVieira Why don't you reopen this issue as more and more people rely on the new dart-sass compiler? |
@CompuIves @christianalfoni Should this be reopened? Is there a way to get dart sass in CodeSandbox? |
Yes that'd be good! Jasper is looking into this. So far we haven't found a
reliable way to get dart-sass to run in the browser.
…On Wed, Jul 21 2021 at 12:49 PM, Sara Vieira ***@***.***> wrote:
@CompuIves <https://github.com/CompuIves> @christianalfoni
<https://github.com/christianalfoni> Should this be reopened? Is there a
way to get dart sass in CodeSandbox?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4742 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEPKCCMHAQBWOJV3XTV5ZDTY2Q4PANCNFSM4QFHE4OQ>
.
|
@CompuIves @SaraVieira at least we can reopen the issues so that the users know you are working on it. |
If there is a way then sure! It's reopened! |
Thanks a lot @SaraVieira ❤️ . This is a good place to track @DeMoorJasper 😄 |
Problem
Sass released a module system where
@use
can replace@import
amongst other features.Unfortunately,
node-sass
does not support the new module system, onlydart-sass
.The
sass
npm module is the implementation ofdart-sass
, which is supported bycreate-react-app
.Code Sandbox Example
Using the
react
template in codesandbox and adding thebootstrap
andsass
packages, addingstyles.scss
with the@import
rule works:but using the
@use
rule does not work:and displays the following error:
Local Example
Exporting the sandbox to a zip through
File > Export to Zip
and runningnpm install
andnpm start
works (the text is supposed to float right):The text was updated successfully, but these errors were encountered: