How to add dependencies to your perspective project


Currently I am trying to develop a module for perspective. I saw your example on github and got already a few things working.

But I am struggling a bit with adding dependencies to your project structure. I tried it with Yarn add in the root directory of the project and now it is added to the package.json files. I also tried alteration on this but everytime when I try to build I end up with the following error.

Could not find a declaration file for module ‘react-signature-pad’. ‘C:/Users/****/Git/ignition-sdk-examples/perspective-component/web/node_modules/react-signature-pad/lib/app.js’ implicitly has an ‘any’ type.
Try npm install @types/react-signature-pad if it exists or add a new declaration (.d.ts) file containing declare module 'react-signature-pad';

So my question: How do you properly add an dependency to your project, in my case the react-signature pad. (