After upgrading React from 17.0.2
to 18.2.0
application does not compile anymore due to SASS compilation error, which looks like this:
SassError: property "url" must be followed by a ':'
on line 6 of node_modules/bootstrap/dist/css/bootstrap.min.css
>> size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg x
------------------------------------------^
There are Bootstrap and node-sass
packages that I use:
"bootstrap": "^5.1.3",
"react-bootstrap": "^2.2.2",
"node-sass": "^7.0.1"
I did not update versions of any other packages except for react
and react-dom
, although I tried updating bootstrap
, react-bootstrap
and node-sass
too to the newest available versions, but this does not fix the issue.
What could cause this error? I fail to see how this could be an issue with React 18.