-
Notifications
You must be signed in to change notification settings - Fork 97
rails new app_name --css bootstrap
imports error on page load in Firefox and Chromium on Ubuntu (rails 7.0.0.alpha2)
#21
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
Comments
Ah yes. Problem is that we assume we're running in a jsbundling app, but don't actually enforce that. Need to enforce adding a jsbundler when using this. Doesn't work with import maps (and doesn't make sense, since you've already added node). |
Right, I was wondering how it would handle the js part of bootstrap. Adding esbuild manually doesn't seem to fix it, since esbuild just errors. On the same app as above I do the jsbundling install steps
I get (among the rest of the log)
However a fresh install OK it all makes more sense now, I think I was just confused. So for pure JS dependencies, we could pull them with Also plain fresh rails app just errors in Firefox(I assume this is because a shim is needed?
|
Closing via rails/rails#43600 |
I don't have a Firefox issue, but my error output was identical to the one posted by sebastianiorga. I was running into a Bootstrap issue for months and I finally just fixed it just now. (My initial project did not have css set up; nor did my system have yarn installed initially.) I ran For posterity, anyone else having this Create a fresh install as per sebastianiorga:
I'm guessing when manually installing via |
Looks like this is still an ongoing issue. Here's my output:
Here is the output in yarn-error.log:
Any help is greatly appreciated. Thank you. |
I fixed the above with the following: |
To reproduce
Open localhost:3000/messages in Firefox(92.0 (64-bit)) and I get
in Chromium (Version 93.0.4577.82 (Official Build) snap (64-bit)) I get
Same situation in an existing app where I add bootstrap following the steps in the Readme.
Gemfile.lock
The text was updated successfully, but these errors were encountered: