How to install stimulus 2.0 preview release?

hello friends,

I have currently installed stable version of stimulus using an installer in the webpacker gem.

But I want to try out stimulus 2.0 - but I don’t know how to install it. Would any of you have any ideas on how this can be done?

any pointers would be appreciated.

chrs

Ben

In your package.json change the line stimulus to:

"stimulus": "https://github.com/stimulusjs/dev-builds/archive/b8cc8c4/stimulus.tar.gz"

Then ‘yarn install’ or ‘yarn upgrade-interactive’

3 Likes

For the benefit of those who read this post in the future::

If you want to upgrade to the latest released version, after using the stimulus 2.0 preview release:

yarn upgrade stimulus@2.0.0

And you should be off to the races. There is no need to directly use the preview release anymore.

1 Like