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
Can't run npm run build with react bootstrap + ts + sass #6039
Comments
I am actually using this setup and it works fine, using webpack to build. Of course, some configuration might be needed. What I dont do is importing SCSS inside TSX files. SCSS is built separately into CSS files and those files are added to the HTML. |
Seems like it's caused by the margin values inside It'll compile if I change this:
to this:
|
Most likely an issue with |
I've been battling this same issue and can confirm that kyletsang's change fixed it for me.
Was particularly unhelpful.
For anyone else facing this issue, I've implemented the following workaround:
Obviously change filenames/locations to whatever suits you. But this fixed the issue for me without modifying any files in node_modules. |
Can confirm the same issue. Also double checked with steps to reproduce, same problem. Solution from @kyletsang solves the issue for me as well. We be great if we could get a PR up for this. Seems like a major issue (not being able to build) with a minor change 😃 I'm on the same versions as @djcolon with the exception of react-bootstrap which is on 2.0.0-rc.0 |
Seems like @kyletsang already set up a PR here: twbs/bootstrap#35033 |
Bootstrap 5.1.2 has been released with the workaround |
Describe the bug
With the latest version, it is not possible to run the build script. It gives a syntax error (see screenshots). The mentioned line and column in the error is consistent irregardless of where the bootstrap import line is.
To Reproduce
Steps to reproduce the behavior:
Reproducible Example
Cannot reproduce on CodeSandbox, since you can't run builds there (or I'm blind)
Expected behavior
The build script to complete successfully and filling the build folder.
Screenshots
Environment (please complete the following information)
Additional context
Tried talking about this in the Discord channel, at least one other user has the same issue.
The text was updated successfully, but these errors were encountered: