0
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 1 year has passed since last update.

Error: No such file or directory @ rb_sysopen

Last updated at Posted at 2021-11-16

問題点

rails server

でサーバーを起動すると下記のようなエラーが表示される。

/Users/user/Github/sample_app/vendor/bundle/ruby/2.7.0/gems/webpacker-4.0.7/lib/webpacker/configuration.rb:91:in `rescue in load': Webpacker configuration file not found /Users/user/Github/sample_app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /Users/user/Github/sample_app/config/webpacker.yml (RuntimeError)

解決方法

エラー文にも載っているように

rails webpacker:install

をターミナルで実行すると直る。

0
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
0
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?