deej81/ngx-croppie

Error: Cannot find type definition file for 'croppie'.

mainawycliffe opened this issue · 2 comments

I am getting the following error when i try and build my project.

ERROR in node_modules/ngx-croppie/src/app/modules/ngx-croppie/ngx-croppie.component.d.ts(1,23): error TS2688: Cannot find type definition file for 'croppie'.

When is remove the line it disappears.

Hi, you need to have the type definitions for croppie installed, you can install them by running this command:

npm i @types/croppie --save-dev

hope that solves the problem for you.

Thanks. It works. Am closing this.