8
4

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.

【解決方法】`rails generate react:install`実行時にCould not find generator 'react:install'エラーが表示される

Last updated at Posted at 2018-06-08

問題点

rails generate react:install実行時に**Could not find generator 'react:install'**エラーが発生する

$ rails generate react:install
            or
$ rails g react:install

Could not find generator 'react:install'. Maybe you meant 'test_unit:job' or 'test_unit:model' or 'generator'
Run `rails generate --help` for more options.

解決方法

springを停止させる

$ spring stop

Spring stopped.

再度、rails generate react:installを実行する。

$ rails generate react:install
            or
$ rails g react:install

Running via Spring preloader in process 39975
      create  app/assets/javascripts/components
      create  app/assets/javascripts/components/.gitkeep
      insert  app/assets/javascripts/application.js
      create  app/assets/javascripts/components.js
      create  app/assets/javascripts/server_rendering.js
      create  config/initializers/react_server_rendering.rb

参考

Rails 4 + react-rails gem: Could not find generator 'react:install' - Stack Overflow

8
4
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
8
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?