ogix / ng2-fancy-image-uploader

Angular2 async image uploader with preview:
https://ogix.github.io/fancy-image-uploader-demo
MIT License
18 stars 11 forks source link

cropperjs: module not found #1

Closed mrkvon closed 7 years ago

mrkvon commented 7 years ago

Hello, trying to use ng2-fancy-image-uploader with angular-cli (webpack), i ran into the following error:

ERROR in ./~/ng2-fancy-image-uploader/dist/src/fancy-image-uploader.component.js
Module not found: Error: Can't resolve 'cropperjs' in '/home/[path-to-angular-cli-project]/node_modules/ng2-fancy-image-uploader/dist/src'
 @ ./~/ng2-fancy-image-uploader/dist/src/fancy-image-uploader.component.js 7:18-38
 @ ./~/ng2-fancy-image-uploader/dist/index.js
 @ ./src/app/app.module.ts
 @ ./src/main.ts
 @ multi webpack-dev-server/client?http://dev.ditup.org:4200 ./src/main.ts

Tried to resolve it with npm install cropperjs, but that doesn't help.

uiuxdeveloper commented 7 years ago

same issue here

ogix commented 7 years ago

Hello, I have already fixed this issue but haven't published a new version yet. Will publish later today.

ogix commented 7 years ago

Can you confirm that it works now so I could close the issue?

mrkvon commented 7 years ago

@ogix Yes, i confirm. Now, my angular-cli project compiles without error and the ng2-fancy-image-uploader works in basic version.

ogix commented 7 years ago

Thanks. I will update demo later with cropping function.

haifzhan commented 7 years ago

I am using version 1.5.1 but still get the issue:

node_modules/ng2-fancy-image-uploader/dist/src/fancy-image-uploader.component.d.ts (1,1): Cannot find type definition file for 'cropperjs'.
webpack: Failed to compile.

Please help, thanks!

ogix commented 7 years ago

Released a new version. Please check if you still have this issue