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

Fix running "rails new --css bootstrap" on 7.1 #147

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

skipkayhil
Copy link
Member

Fixes rails/rails#50671

Rails 7.1 included a change to allow using importmaps along with all cssbundling options. However, the Bootstrap installer was never updated to take this new default into effect (and is currently broken because of this).

This commit adds the additional configuration required to use the Bootstrap npm package with importmaps so that "rails new" generates an application that runs without errors.

Rails 7.1 included a [change][1] to allow using importmaps along with
all cssbundling options. However, the Bootstrap installer was never
updated to take this new default into effect (and is currently broken
because of this).

This commit adds the additional configuration required to use the
Bootstrap npm package with importmaps so that "rails new" generates an
application that runs without errors.

[1]: rails/rails@84458a8
@Peredery
Copy link

fyi, twbs/bootstrap-rubygem#271

@manuelmeurer
Copy link

@Peredery Note that cssbundling uses the Bootstrap npm package, not the gem that you linked to.

@dhh dhh merged commit 3e768cd into rails:main Jan 21, 2024
@skipkayhil skipkayhil deleted the hm-fix-bootstrap-importmap branch January 21, 2024 19:28
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

Successfully merging this pull request may close these issues.

"rails new app --css bootstrap" produce Uncaught TypeError
4 participants