It shouldn't matter if you are using @hotwired/turbo or @hotwired/turbo-rails, TurboPower should work either way.
As pointed out in #2 and #3 (comment) it seems like there are some inconsistencies. The following snippets should work:
import * as Turbo from "@hotwired/turbo"
import TurboPower from "turbo_power"
TurboPower.initialize(Turbo.StreamActions)
import { StreamActions } from "@hotwired/turbo"
import TurboPower from "turbo_power"
TurboPower.initialize(StreamActions)
import { Turbo } from "@hotwired/turbo-rails"
import TurboPower from "turbo_power"
TurboPower.initialize(Turbo.StreamActions)
It shouldn't matter if you are using
@hotwired/turboor@hotwired/turbo-rails, TurboPower should work either way.As pointed out in #2 and #3 (comment) it seems like there are some inconsistencies. The following snippets should work: