-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Repo]: usage of math.div
breaks some build tools that do not have the ability to upgrade sass.
#9851
Comments
@kevinsperrine can you force a resolution to |
@tay1orjones Unfortunately, no. The forced resolutions can allow the library to build, but the resolution will not force it to be installed by consumers of the library. So, if they are importing the scss and using angular's |
@kevinsperrine Gotcha, that's a bummer. The proposed idea to check to see if the function exists before using it sounds like a solid plan. It's worth noting even that will only support back to sass >=1.23.0. |
@tay1orjones Good point. I just checked and the v9 LTS is "sass": "1.26.3" and v10 LTS is "sass": "1.26.10", so I think we're covered. |
### Description Upgrade Storybook to latest version 6.5.15 ### Changelog **Changed** - `react`, `web-components`, and `carbon-web-components` Storybook upgraded to latest <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
Package
carbon-components, carbon-components-react
Browser
Chrome
Package version
v10.41.0
Description
The addition of math.div added in 10.41.0 do not check for the existence of the function, and causes some build tools to break. This breaks backwards compatibility of some libraries, because the sass version cannot be changed by the user.
For example, in
ai-apps/angular
andcarbon-addons-iot-react
the angular library is trying to maintain parity with react by using the react styles; however, angular v11 only support dart-sass v1.32.x andmath.div
was added in 1.33. These math.div updates prevent theai-apps/angular
package from re-using styles from carbon and still maintain backwards compatibility with angular v11.CodeSandbox example
n/a
Steps to reproduce
You can see an example of this in the
carbon-addons-iot-react
build logs from https://app.netlify.com/sites/ai-apps-pal-angular/deploys/615df5061dc8800008ef3170.Code of Conduct
The text was updated successfully, but these errors were encountered: