Firstly change your path to TrezorConnect project inside ./webpack/constants.js Put your path into TREZOR_CONNECT_ROOT field
Then:
npm install
/ yarn
If you want to compile project with TrezorConnect version with popup call:
npm run dev:local
/ yarn dev:local
otherwise
npm run dev
/ yarn dev