Open hansmbakker opened 7 months ago
I created a start at https://github.com/hansmbakker/enketo/tree/fix/scss-math-div but I believe there are more occurrences across enketo. Feel free to use my branch.
Thank you!
A possible solution could be to run sass-migrator, for example like
sass-migrator division packages/enketo-core/src/**/*.scss
Describe the bug When consuming the enketo-core SCSS using Vite, I get a lot of deprecation warnings about
/
being used in SCSS as a division operator outsidecalc(...)
.The explanation for this breaking change is here.
An overview of all occurrences is here.
To Reproduce
npm create vite@latest
enketo-core
andsass
as dependencies topackage.json
npm install
andnpm run dev
<link rel="stylesheet" href="/node_modules/enketo-core/src/sass/plain/plain.scss" />
to yourindex.html
Expected behavior No deprecation warnings when consuming enketo-core
Screenshots If applicable, add screenshots to help explain your problem.