Trying to use sass modules in create-react-app with the new @use syntax but receiving an error

Update:

Since Node Sass is now deprecated, you can migrate to Dart Sass by replacing node-sass with sass in your package.json and so you will be able to use the @use and @forward rules.

You can use the migration tool to help you with the update.


Original answer:

The @use rule is currently only supported by Dart Sass. You should use @import instead.

Leave a Comment