1

bundle exec rails stimulus_reflex:install

给了我这个错误,
rails 中止了!不知道如何构建任务 'stimulus_reflex:install'

为什么?

(命令顺序...

  1. rails new --skip-spring --webpack=stimulus chatter
  2. yarn add redis cable_ready stimulus_reflex
  3. bundle exec rails stimulus_reflex:install

导轨中止!不知道如何构建任务 'stimulus_reflex:install'

4

1 回答 1

1

Stimulus Reflex 有一个服务器和一个客户端部分。使用纱线,您只需添加客户端部分。您需要stimulus_reflex通过将其添加到您的Gemfile或运行中来安装bundle add stimulus_reflex

文档解释了如何很好地设置它:https ://docs.stimulusreflex.com/setup

于 2020-12-05T15:17:40.913 回答