1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Herokuアプリでrails jQuery must be included before Bootstrap's JavaScriptと言われたら

Last updated at Posted at 2020-07-07

出典:https://stackoverflow.com/questions/45699456/js-jquery-not-working-with-heroku

ローカルではbootstrapもopalもうまく動いていたのに、Herokuにデプロイしたらブラウザのコンソールに「jQuery must be included before Bootstrap's JavaScript」となってしまって困っていました。
bootstrapのインストール方法等、をまずは普通にググッて、間違っていないか確認しましょう。そのうえで、それでもだめなときに、やってみてください。

bundle exec rake assets:precompile

これでGitコミットして、herokuデプロイしてみてください。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?