Skip to content
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

Pin SASS version to reduce log noise #379

Merged
merged 1 commit into from Jul 13, 2023
Merged

Pin SASS version to reduce log noise #379

merged 1 commit into from Jul 13, 2023

Conversation

Fweddi
Copy link
Contributor

@Fweddi Fweddi commented Jul 13, 2023

For versions >1.32, SASS spits out deprecation warnings for certain calc() functions. These warnings are from our dependency on ElasticUI, who currently have no intention to fix them - see: elastic/eui#5682 (comment).

The best solution until ElasticUI have fixed these warnings is to pin our SASS version.

I've tested locally and the application runs as expected.

>1.32, SASS spits out deprecation warnings for certain calc() functions. These warnings are from our dependency on ElasticUI, who currently have no intention to fix them - see: elastic/eui#5682 (comment). The best solution until ElasticUI have fixed these warnings is to pin our SASS version.
@Fweddi Fweddi requested a review from a team as a code owner July 13, 2023 16:14
@@ -20,7 +20,7 @@
"@types/react-dom": "~17.0.19",
"@vitejs/plugin-react-swc": "^3.0.0",
"jest": "^29.5.0",
"sass": "^1.60.0",
"sass": "~1.32.13",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have tried to suppress the warnings in https://github.com/guardian/typerighter/blob/main/apps/rule-manager/client/vite.config.ts#L29-L33, but this doesn't work because of some decisions by the maintainers of SASS.

  1. They don't want anyone to ever be able to turn off deprecation warnings, because as soon as those features are removed from the language and go from warnings to errors, they will be flooded with GitHub issues.
  2. They made one exception, which is if a dependency is the cause, then you can "quiet" just those.
  3. But then they made it so that their definition of a "dependency" is so strict that it is unlikely anyone actually meets that criteria, so you can't actually turn off the deprecation warnings (their intended outcome).

See https://stackoverflow.com/a/75025363 for more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words: it's awful, but it's lawful.

@Fweddi Fweddi merged commit e4d2881 into main Jul 13, 2023
1 check passed
@Fweddi Fweddi deleted the fp/remove-sass-noise branch July 13, 2023 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants