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

CompileError: Begins at CSS selector undefined #145

Open
blascokoa opened this issue Jun 10, 2023 · 0 comments
Open

CompileError: Begins at CSS selector undefined #145

blascokoa opened this issue Jun 10, 2023 · 0 comments

Comments

@blascokoa
Copy link

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);

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

No branches or pull requests

1 participant