Skip to main content
0 votes
0 answers
9 views

refactoring for Dart Sass 3.0.0 => mixins are undefined after changing "imports" to "use"

I am trying to refactor my scss app but after changing all my @import to @use now some mixins are showing undefined. ./styles.scss @use './fonts' as *; // mixin defined here @use './base' as *; // ...
Omar's user avatar
  • 3,030
0 votes
0 answers
9 views

Custom build of Telerik Kendo Themes

I'm trying to update version of Kendo Themes in my FE project. I'm building all CSS files on my side, because it is compilation of Bootstrap, Kendo and other parts. I uninstalled node-sass and ...
Raptor's user avatar
  • 442
0 votes
1 answer
131 views

The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. with Vue2

I realize similar questions have been asked before about this warning, but none of the proposed solutions have solved this issue for me, or been applicable in my scenario. I have recently upgraded ...
LiteralMetaphore's user avatar
1 vote
1 answer
49 views

How to correctly link an asset file in a library compiled by dartsass-rails used in a rails app

I am currently using the dartsass-rails lib in compiling scss files in my rails app. In the lib, I have a customized font family I'm trying to create using @font-face and a local font file; @font-face ...
emmaakachukwu's user avatar
0 votes
1 answer
43 views

When I use mix() in dart-sass, the output is rgb() instead of HEX(#)

I use [email protected] , [email protected] on Mac. The gulp task are as follows. import { src, dest, series, watch } from 'gulp'; import * as dartSass from 'sass'; import gulpSass from 'gulp-sass'; const ...
ysakmrkm's user avatar
0 votes
0 answers
242 views

Gulp and "SASS: Deprecation The legacy JS API" Warning?

As many others, I've recently begun to get this error whenever I compile my SASS. Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0. No matter what I do, I ...
Micke Hasselqvist's user avatar
2 votes
1 answer
76 views

Scss with @use and @forward instead of @import in a multi UI themes scenario

I am trying to figure out how manage a migration from @import to @use/@forward directives in a multi theming scenario. I have multiple set of variables directory and each one represents a UI theme. ...
Giallo's user avatar
  • 21
0 votes
1 answer
1k views

How to solve the "SASS: Deprecation The legacy JS API" Warning?

I have this project I've been building with the T3 Stack (Next JS / Vercel / etc.). And as many of us, I got now this warning SASS Deprecation on Dart Sass 2.0.0. I've seen many people suggesting ...
Tavares's user avatar
  • 21
0 votes
1 answer
20 views

Scss @use with consistent `with` parameters across multiple files

I'm still new to the @use and @forward rules in scss, so I may be misunderstanding a bit and would appreciate some help. I have a file that sets up a configuration for a vendor library: uswds-theme....
allicarn's user avatar
  • 2,919
0 votes
2 answers
3k views

How to resolve the deprecation warning 'The legacy JS API is deprecated' when using Dart Sass?

I'm getting the following message when building my project in js, but Dart Sass is already up-to-date. What should I do in this situation? [@localhost frontend]$ npm run lumis:build .../frontend/...
tico's user avatar
  • 1
75 votes
7 answers
67k views

The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0

I was using create-react-app before and now I switched the same project to vite and everything working fine except I am getting a warning log as follows Deprecation [legacy-js-api]: The legacy JS API ...
Jouhar's user avatar
  • 1,340
14 votes
4 answers
6k views

Sass 1.77.7 Breaking Change: Mixed Declarations - Are there any simple work arounds or updates for existing projects?

Sass announced there will be some upcoming breaking changes to the syntax in mixed declarations. As of Sass 1.77.7 I'm getting the following warnings when compiling. - Sass's behavior for ...
j-carr's user avatar
  • 140
1 vote
0 answers
171 views

Cannot get Bulma color overrides to work after Bulma upgrade to 1.0.1

I have a create-react-app in which I am trying to upgrade bulma from version 0.9.4 to 1.0.1. So far, everything seems to have worked, with exception of the new dart method of overriding the colors. I ...
martijn's user avatar
  • 1,469
2 votes
0 answers
199 views

How migrate and use dartsass-sprockets with rails 6?

I use gem 'sass-rails' on rails (6.1.7.6), I want try to use gem 'dartsass-sprockets' (because I have to use sprockets), I bundle install and don't modify other thing at this point. I get this error : ...
Matrix's user avatar
  • 3,359
0 votes
0 answers
45 views

Dart SASS can't see outside of the /src folder. Why is this?

Dart SASS can't see outside of the /src folder. Why is this? I have my /node_modules folder at the root of my solution, i.e. next to package.json All of my development files I put in the /src folder ...
Dave Patrick's user avatar

15 30 50 per page
1
2 3 4 5
7