react-awesome-button icon indicating copy to clipboard operation
react-awesome-button copied to clipboard

CompileError: Begins at CSS selector undefined

Open blascokoa opened this issue 1 year ago • 0 comments

On development it works well, but when I try to make a production build, yarn returns the following error:

yarn run v1.22.19
$ react-scripts build
Creating an optimized production build...
Failed to compile.

Lexical error on line 1: Unrecognized text.
  Erroneous area:
1: $loading-transition-speed / 20
^..^
CompileError: Begins at CSS selector undefined

Solved modifying the line 33 of file: node_modules/react-awesome-button/src/styles/base/custom-properties.scss

from: --loading-transition-end-speed: #{calc($loading-transition-speed / 20)} ;
to --loading-transition-end-speed: calc(#{$loading-transition-speed} / 20);

blascokoa avatar Jun 10 '23 11:06 blascokoa