How do I build Stimulus?

Things I’ve tried:

  1. Cloned the repo.

  2. Ran npm install

  3. Ran npm precompile

The precompile command stopped with a typescript compilation error:

node_modules/@types/lodash/index.d.ts:12651:53 - error TS2344: Type 'T' does not satisfy the constraint 'object'.

Pretty sure I’m missing something obvious. Please help.

First, make sure you have Yarn installed. Then:

$ git clone
$ cd stimulus
$ yarn install
$ yarn build

To run the test suite:

$ yarn test

To start the example app:

$ yarn start

and visit http://localhost:9000/.