11
9

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 5 years have passed since last update.

俺でもわかるシリーズAdvent Calendar 2017

Day 9

webpackerがRails5.1でjsを読み込んでくれなくなったので俺でもわかるように記事に書いた。

Last updated at Posted at 2017-12-08

#Rails5.1にアプデしたらjsがエラー吐いた

Rails5.1にバージョンアップしたらjsが読み込まれなくなった。
Can't find githubActivity.js in /myapp/public/packs/manifest.json. Is webpack still compiling?
Extracted source (around line #1):
              
= javascript_pack_tag 'githubActivity'
= javascript_pack_tag 'articleList'

webpackerのReadmeに書いてありますが、これで解決できます。

これを実行するんだ!
./bin/rails webpacker:install
./bin/rails webpacker:install:vue
bin/webpack
11
9
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
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?