You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building the site with the new WCSS update, there is the following error
Creating an optimized production build...
Failed to compile.
./src/sass/index.scss
SassError: argument `$string` of `str-slice($string, $start-at, $end-at:-1)` must be a string
on line 16 of node_modules/@aurodesignsystem/webcorestylesheets/dist/utilityFunctions/_capitalize.scss, in function `str-slice`
from line 16 of node_modules/@aurodesignsystem/webcorestylesheets/dist/utilityFunctions/_capitalize.scss, in function `auro_capitalize`
from line 88 of node_modules/@aurodesignsystem/webcorestylesheets/dist/utilityMixins/_spacingUtility.scss, in mixin `auro-spacing`
from line 98 of node_modules/@aurodesignsystem/webcorestylesheets/dist/utilityMixins/_spacingUtility.scss
from line 33 of src/sass/index.scss
>> @return to-upper-case(str-slice($string, 1, 1)) + str-slice($string, 2);
------------------------^
We found that this issue is caused by the changes made in the latest release v4.3.0. Changes that were made in the _spacing-options.scss of the WebCoreStyleSheets repo, more specifically, the addition of numbers to the existing $auro-spacing-options variable. https://github.com/AlaskaAirlines/WebCoreStyleSheets/pull/145/files
With the changes, the utility function called auro_capitalize is now failing because it the function expects the arguments to always be of string type.
We believe that adding a type check in the auro_capitalize function inside the WebCoreStyleSheets repo, will resolve the build errors happening in the AuroDocsSite when trying to run a build.
Describe the bug
When building the site with the new WCSS update, there is the following error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Site will build
Exit criteria
This issue will be resolved once the docsite is able to build with the latest version of WCSS.
The text was updated successfully, but these errors were encountered: