v2.0.0: Update to @hotwired/stimulus v3
This is a major update, because this package now only supports the new @hotwired/stimulus package. It no longer supports the legacy package that was called @stimulus/mutation-observers
, as this package has been rolled into Stimulus itself.
This means, you should
- Read the Stimulus v3 Announcement: https://world.hey.com/hotwired/stimulus-3-c438d432
npm uninstall stimulus @stimulus/mutation-observers
npm install @hotwired/stimulus
- Update your imports to import from
'@hotwired/stimulus'
instead of'stimulus'
, for example:
- import { Application } from '@stimulus'
+ import { Application } from '@hotwired/stimulus'
import StimulusControllerResolver from 'stimulus-controller-resolver'
const application = Application.start()