I had to increase the version of Twilio as the old version used an insecure version of Axios.
Unfortunately I also had to add the Express' types since after increasing the version of Twilio I got the following error:
$ yarn build
yarn run v1.22.5
$ lerna run build
lerna notice cli v3.22.1
lerna info Executing command in 3 packages: "yarn run build"
lerna ERR! yarn run build exited 2 in 'ivr-tester'
lerna ERR! yarn run build stdout:
$ yarn clean && tsc --declaration
$ rimraf dist/
../../node_modules/twilio/lib/webhooks/webhooks.d.ts(1,35): error TS2307: Cannot find module 'express' or its corresponding type declarations.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build stderr:
error Command failed with exit code 2.
lerna ERR! yarn run build exited 2 in 'ivr-tester'
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I had to increase the version of Twilio as the old version used an insecure version of Axios.
Unfortunately I also had to add the Express' types since after increasing the version of Twilio I got the following error: